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

fortran calling c++ lib

erheiqin
Beginner
436 Views
I am calling a .lib (built from vc++ 6) from my fortran files. When I built them, I have the following link prob:
Linking...
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
Anybody can help? thanks
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
436 Views
1) Make sure that run-time libraries on project/Settings/Fortran and project/Settings/C++/Code Genaration are the same (e.g. "Single threaded")
2) If you have sources of the C library, make sure that either
a) the library is built with the same RTL setting as above, or,
b) (better) the library is built with /Zl switch (lowercase L), meaning that information of the used RTL will not be embedded during build of the lib, but specified later during build of an exe.
Jugoslav
0 Kudos
Reply