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

Compilier settings vs. Linker library lists

jbalster
Novice
437 Views
I have long fought the battle between the compilier settings and the include/exclude library lists in the linker for a project which mixes FORTRAN, C, and C++ routines into a single .exe. I have never been able to figure out how to locate the solution to a linker error such as
LNK2001: unresolved external symbol ___argv
other than just trying combiniations of libraries on the include/exclude lines for the linker. This is assuming that all of the FORTRAN projects have been verified to be built with the same compilation settings.
It would be most helpful if the documentation on the compiler settings would give some information on what library/libraries are needed to support that setting value. Then, I could look up the compilier switches I was using, and from the help on that switch, know what library I had to include/exclude
Is there any possibility of getting the documentation improved to include this information????
0 Kudos
1 Reply
Steven_L_Intel1
Employee
437 Views
There's a chapter Using Libraries in the Intel Visual Fortran User's Guide that covers this. For CVF, there's always the article on MCLS.
0 Kudos
Reply