[CMake] Why I got a run time "Debug Error!" with this CImg app built with cmake?

Mr Shore shore.cloud at gmail.com
Sat Jul 17 02:23:05 EDT 2010


The CMakeLists is like this:

cmake_minimum_required(VERSION 2.6)
project(test)

include_directories(D:/Works/mixed/c/CImage/CImg-1.3.7)
add_executable(test compare.cpp)

I can build it successfully,but when I rub it will get a run time "Debug
Error!".

But it works in another project using the same library , the BuildLog as
follows:



Creating temporary file
"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000118242128.rsp"
with contents
[
/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"
]
Creating command line "cl.exe
@"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000118242128.rsp"
/nologo /errorReport:prompt"
Creating temporary file
"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000218242128.rsp"
with contents
[
/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

".\Release\CImg_demo.obj"
]
Creating command line "link.exe
@"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000218242128.rsp"
/NOLOGO /ERRORREPORT:PROMPT"
Creating temporary file
"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000318242128.rsp"
with contents
[
/outputresource:".\Release\project_win_visualcpp.exe;#1" /manifest

".\Release\project_win_visualcpp.exe.intermediate.manifest"
]
Creating command line "mt.exe
@"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\RSP00000318242128.rsp"
/nologo"
Creating temporary file
"d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\BAT00000418242128.bat"
with contents
[
@echo Manifest resource last updated at %TIME% on %DATE% > ".\Release\mt.dep"
]
Creating command line
"""d:\Works\mixed\c\CImage\CImg-1.3.7\resources\project_win_visualcpp\Release\BAT00000418242128.bat"""


How to solve this issue?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100717/7fd926db/attachment-0001.htm>


More information about the CMake mailing list