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

Share modules among projects in IDE?

nbanta
Beginner
324 Views

I am using VS .NET 2003 and IVF 9.0. I have several projects that use a commonset of modules. I would like to configure the solution and projects so that the source code files for the modules do not have to be recompiled for each project, preferably by compiling the modules into a static library. I have not found documentation on how to do this. Well, I have (Add astatic library project for the modules and add the resulting.lib file into a dependent project), butit does not seem to work. I get errors messages like:

Error: Error in opening the Library module file. [GLOBAL_DATA]

There mustbe a way to do this. Can someone clue me in on what I am missing? Thanks.

Ned Banta

0 Kudos
1 Reply
Steven_L_Intel1
Employee
324 Views
You need to add the path of the library project's output directory (Debug or Release) to the "additional INCLUDE directories" list of your main projects. Then make the library project a dependent of your main project.
0 Kudos
Reply