Originally posted by: SimonRyu
Hi, everyone.
I am wrting C++ codes using Visual Studio 2010 with CPLEX 12.3.
Following the instruction provided by CPLEX installer, I tried to compile and build my codes.
When I compile the codes in DEBUG MODE, I met the errors in the following OUPUT-A.
However, I could solve the problem by adding "_ITERATOR_DEBUG_LEVEL=0" into PREPROCESSOR DEFINITIONS following the advice RodrigoLinfati posted in this forum.
Question 1) Is this correct solution for my problem? Is their any other solution?
Question 2) Even though I succeded in compiling and building my codes, I stil have a lot of warnnings as shown in OUTPUT-B.
If "_ITERATOR_DEBUG_LEVEL=0" is only solution to Q1, is there any solution for removing warnings?
(Actually, I met the same warnings when I compile the same codes in RELEASE MODE. However, I could removed the warnings by
by changing YES(DEBUG) into NO in Linker/Debugging/Generate Debug Info.)
NOTE: My project settings in DEBUG & RELEASE MODE are as follows:
(1)RELEASE: Multi-threaded(/MT)
(2)DEBUG : Multi-threaded Debug DLL(/MDd)
<BEGIN OUTPUT-A>--------------------------------------------------------------------------------------------------------------------------------------------
1>ilocplex.lib(ilocplex.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in TestExam3-9.obj
1>ilocplex.lib(ilocpxcallback.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in TestExam3-9.obj
1>ilocplex.lib(ilocplexreader.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in TestExam3-9.obj
1>ilocplex.lib(ilocpxindexmanager.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in TestExam3-9.obj
1>ilocplex.lib(iloextrmgr.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in TestExam3-9.obj
1>ilocplex.lib(iloexpr.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in TestExam3-9.obj
1>ilocplex.lib(ilosvec.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in TestExam3-9.obj
... (cut these out becaue of too much large volume)
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
<END OUTPUT-A>----------------------------------------------------------------------------------------------------------------------------------------------
<BEGIN OUTPUT-B>--------------------------------------------------------------------------------------------------------------------------------------------
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>concert.lib(iloalg.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloalg.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloallocator.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloallocator.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloanyexpr.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloanyexpr.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloconstraint.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloconstraint.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloenv.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloenv.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloexpression.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloexpression.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloextractable.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloextractable.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilohash.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilohash.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloiterator.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloiterator.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilomap.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilomap.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilorandom.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilorandom.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilosbasic.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilosbasic.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilosdisplayi.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilosdisplayi.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloserror.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloserror.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloset.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloset.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilosolution.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilosolution.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilossequencei.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilossequencei.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilossol.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilossol.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilosstructi.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilosstructi.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilostimei.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilostimei.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilothread.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilothread.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilotypes.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilotypes.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilocollection.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilocollection.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilocollectioniterator.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilocollectioniterator.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilocollectionoperator.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilocollectionoperator.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilocollectionstruct.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilocollectionstruct.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilosimplecollection.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilosimplecollection.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilointervalsi.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilointervalsi.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(ilonumfunci.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(ilonumfunci.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloparami.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloparami.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(iloskiplist.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(iloskiplist.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(evalexpand.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(evalexpand.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(evalkernel.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(evalkernel.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(evaluator.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(evaluator.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1>concert.lib(strtod.obj) : warning LNK4099: PDB 'concert.pdb' was not found with 'concert.lib(strtod.obj)' or at 'D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\concert.pdb'; linking object as if no debug info
1> TestCPLEX.vcxproj -> D:\VDRC\Development\ProteinDesign\TestCPLEX\Debug\TestCPLEX.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
<END OUTPUT-A>----------------------------------------------------------------------------------------------------------------------------------------------
#CPLEXOptimizers#DecisionOptimization