The CMakeLists is like this:<br><br>cmake_minimum_required(VERSION 2.6)<br>project(test)<br><br>include_directories(D:/Works/mixed/c/CImage/CImg-1.3.7)<br>add_executable(test compare.cpp) <br><br>I can build it successfully,but when I rub it will get a run time "Debug Error!".<br>
<br>But it works in another project using the same library , the BuildLog as follows:<br><br><table width="" cellpadding="0" cellspacing="0"><tbody><tr><td width="0" bgcolor="#ffffff"> </td><td width="*"><pre>Creating temporary file "d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000118242128.rsp" with contents<br>
[<br>/Ox /Oi /GL /I "..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Gy /Fo"Release\\" /Fd"Release\vc90.pdb" /W3 /c /Zi /TP "..\..\examples\CImg_demo.cpp"<br>
]<br>Creating command line "cl.exe @"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000118242128.rsp" /nologo /errorReport:prompt"<br>Creating temporary file "d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000218242128.rsp" with contents<br>
[<br>/OUT:"D:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\project_win_visualcpp.exe" /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"Release\project_win_visualcpp.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\project_win_visualcpp.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib<br>
<br>".\Release\CImg_demo.obj"<br>]<br>Creating command line "link.exe @"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000218242128.rsp" /NOLOGO /ERRORREPORT:PROMPT"<br>
Creating temporary file "d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000318242128.rsp" with contents<br>[<br>/outputresource:".\Release\project_win_visualcpp.exe;#1" /manifest<br>
<br>".\Release\project_win_visualcpp.exe.intermediate.manifest"<br>]<br>Creating command line "mt.exe @"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000318242128.rsp" /nologo"<br>
Creating temporary file "d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\BAT00000418242128.bat" with contents<br>[<br>@echo Manifest resource last updated at %TIME% on %DATE% > ".\Release\mt.dep"<br>
]<br>Creating command line """d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\BAT00000418242128.bat"""<br></pre></td></tr></tbody></table><br>How to solve this issue?<br>