Re: right sequence of included module files



Mike wrote:

No. As you just say, I Build the project. There are *.obj and *.mod
appeared in Debug directory. Then I see *.mod do appear in "External
Dependencies" of Workspace/Fileview.
Can you figure any wrong step?

I've never seen that happen. Which compiler are you using?

I did put all of my .f90 files into the project, since I don't want to
figure out which modules I have to USE or not USE.
I put all of them into the project.
Then I find some of the .f90 are main programs.
So I delete all of them. I compile the main program I have.
Figure out what module files are needed, after linking.
Then add them to project. Need a lot of time to do this.
Is there a way to filter out all of main programs (except current one
I want), when I Add all .f90 to the project?

There's no automatic way to do this. You might get a clue when the linker complains about multiple main programs, but figuring out which other sources aren't needed requires you to understand the application. Most people separate the sources of different applications.

--

Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH

For email address, replace "invalid" with "com"

User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://support.intel.com/support/performancetools/fortran
My Fortran blog
http://www.intel.com/software/drfortran
.



Relevant Pages

  • Re: unresolved external symbol
    ... I get the mistake unresolved external symbol -LNK2001 when building a ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: TYPE declaration/statement in Fortran 77 code
    ... seen where TYPE is an I/O statement, it is interchangeable with "PRINT" and still requires a format specifier. ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: bug with ifort + openmp : allocatable array not allocated after allocation
    ... The workaround is to not use the -check pointer feature. ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: sort the variables shown in variable window in debugger
    ... on the order in which things were written to the debug symbol table, ... Developer Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)
  • Re: [Q] FORMAT
    ... Steve Lionel ... Software Products Division ... User communities for Intel Software Development Products ... Intel Fortran Support ...
    (comp.lang.fortran)