Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

excluding files from build

forall
Beginner
550 Views
how can I exclude files from build in Fortran 8.1? In CVF I was linking the debug version of a code against a debug version of a library (*.lib) and similarly for the release version, using the 'exclude from build' feature.

I searched through the 8.1 project settings, but couldnt find it. I also looked through help and it says it can be done for the C++ projects but I couldnt find the analogous steps in the Fortran menus.

thanks in advance

Message Edited by forall on 01-31-2005 11:01 PM

0 Kudos
5 Replies
Steven_L_Intel1
Employee
550 Views
Right click on the file, select Properties. if the Build tab is not active, click it. Change "Exclude from build" from No to Yes.

I'd think this is the same as for C++.
0 Kudos
forall
Beginner
550 Views
arrr, well explains why I couldnt find the option - I am trying to disable a *.lib file, not a *.f90. If I right-click on an *.lib file and goto Properties, I only have 'general' tab - there is no 'build' tab. The *.f90 files do have the option. Another change from CVF?
0 Kudos
Steven_L_Intel1
Employee
550 Views
The whole IDE environment is different from the way CVF worked, and a lot of things that "came for free" with the VS6 integration have to be explicitly enabled for Fortran projects. Looks as if this is one that was missed. I'll ask that it be added.

An alternative is to not add the .lib as a project file, but to specify it under the Link tab in project properties. You can have different libraries for different configurations.
0 Kudos
forall
Beginner
550 Views
where in the link tab? I tried, unsucesfully,

>general/additional library directories (pasting either path or path/name.lib) and

>advanced>import library (paste path/name.lib)
0 Kudos
Steven_L_Intel1
Employee
550 Views
Input..Additional Dependencies
0 Kudos
Reply