codelite吧 关注:105贴子:262
  • 1回复贴,共1

【求助】在一个project里如果有多个cpp文件,调试出错

只看楼主收藏回复

如果只有一个cpp就没有错误。
构建时输出的信息
----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -e -j 2 -f "Test_wsp.mk""
----------Building project:[ Dogs - Debug ]----------
mingw32-make.exe[1]: Entering directory `D:/Test/Dogs'
***:/Test/Dogs/Hello.cpp" -g -O0 -Wall -o ./Debug/Hello.o -I. -I.
D:/Test/Dogs/Hello.cpp:3:21: fatal error: cstdlib.h: No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [Debug/Hello.o] Error 1
mingw32-make.exe: *** [All] Error 2
Dogs.mk:94: recipe for target `Debug/Hello.o' failed
mingw32-make.exe[1]: Leaving directory `D:/Test/Dogs'
Test_wsp.mk:4: recipe for target `All' failed
----------Build Ended----------
1 errors, 0 warnings


IP属地:北京1楼2013-01-21 22:58回复
    摸索着学习C++,真不知道哪里出错了。


    IP属地:北京2楼2013-01-21 23:02
    回复