****配置調試的建立項目測試用例****未定義參照的WinMain錯誤1中的mingw蝕
make all
Building target: testcase.exe
Invoking: MinGW C++ Linker
g++ -o"testcase.exe" ./atest.o ./main.o C:/cppunit/src/cppunit/.libs/libcppunit.a
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `[email protected]'
collect2: ld returned 1 exit status
make: *** [testcase.exe] Error 1
undefined reference to `[email protected]' : mingw/lib/libmingw32.a(main.o):main.c:
make: *** [testcase.exe] Error 1
但正在使用的CPP程序。在cpp程序中有main.cpp,atestcase.cpp和a.hpp,但是它顯示的是main.c :(。text + 0xd2):
任何人都可以解決這個問題。請問能否幫助我 , r.kranthikumar
另請參閱http://yongshin.blogspot.com/2005/11/how-to-use-cdt-and-mingw-for-eclipse.html#c8263974258284865 – VonC 2010-01-11 09:46:10