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

/nodefaultlib and MCLS heartbreak with mixed language code- How do I know I have a problem?

camille_dannunzio
Principiante
1.387 Vistas
I have a mixed language FORTRAN & C program (CVF 6.6 and Visual C++ 6.0) (everything complies seemlessly)
I have been reading the Heartbreak of MCLS paper by Peter Karam. It says that CVF V6.6 eliminates this conflict but I have to use /nodefaultlibfor libc.lib and libcd.lib for it to link with no errors orI get the following link error
Linking...
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
should I be doing something else besides using the

/nodefaultlibfor libc.lib and libcd.lib
Camille
0 kudos
1 Responder
Jugoslav_Dujic
Colaborador Valioso II
1.387 Vistas

DoNOT use /nodefaultlib. Instead, make sure that run-time libraries on "Fortran/Libraries/Use run time library" and "C/C++/Code generation/Use run-time library" are the same.

Jugoslav

Responder