如果只有一个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
构建时输出的信息
----------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