Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
36 Views

link errors/warnings only in debug mode on windows VS/ifort&icc

Our visual studio 2015 and intel fortran c++ 17.1 project links and build fine in Release mode.  We always get either warnings or errors in linking Debug versions.  Its annoying but not fatal.   The mismatches are in calls from Fortran to C++ projects (both built with intel compilers).   I presume some Debug flags in Fortran and C++ are not synced but I don't know enough to know what to fix.  Any help would be appreciated.

cas2map fortran main options line:

/nologo /debug:full /MP /Od /I"../Includes" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\u023\x64/Debug" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\datatools\x64/Debug/" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\math\x64/Debug" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\acsysmodule\x64/Debug" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\v599\x64/Debug" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\acsys\x64\Debug/" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\geometry\x64/Debug/" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\string\x64\Debug\/" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\dynamite\x64/Debug/" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\datafile\x64/Debug/" /I"S:\DDS\m313133\acsys\v_procsbcgendevl\src\solutions\xmlparser\x64/Debug" /debug-parameters:all /warn:interfaces /Qsave /module:"x64\Debug\\" /object:"x64\Debug\\" /Fd"x64\Debug\cas2map.pdb" /traceback /check:pointer /check:bounds /check:uninit /check:stack /libs:static /threads /dbglibs /c

xmlparser_c librarian command line:

/OUT:"x64\Debug\xmlparser_c.lib" /MACHINE:X64 /NODEFAULTLIB:"nafxcwd.lib" /NODEFAULTLIB:"libcmtd.lib" /NODEFAULTLIB:"libcpmtd.lib" /NOLOGO

 

 

 

 

 

 

 

Severity

Code

Description

Project

File

Line

Suppression State

Error

 

error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in xmlparser_c.lib(xml_parser.obj)

 

 

libcpmt.lib(winapisupp.obj)

 

 

0 Kudos
1 Reply
Highlighted
Black Belt Retired Employee
29 Views

This looks appropriate (top hit on Google search of the message): https://stackoverflow.com/questions/7668200/error-lnk2038-mismatch-detected-for-iterator-debug-level...

--
Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos