From: Greg C. <gch...@sb...> - 2010-01-04 19:52:16
|
On 2010-01-04 16:53Z, rath wrote: > > I installed msys and mingw. Then I compiled a little c++ program with "./configure" and "make". > When I run it in the msys shell with "./test" I get the program output. But in the windows shell I get with "test.exe" no output. http://article.gmane.org/gmane.comp.gnu.mingw.msys/3451 > Another thing.. When I try to compile a simple c++ helloworld program with "gcc main.cpp -o test.exe" I get this error message: > > gcc main.cpp -o test.exe > C:/DOKUME~1/Joern/LOKALE~1/Temp/ccTEMYfz.o:main.cpp:(.text+0xd): undefined refer > ence to `std::string::size() const' For C++, use 'g++' instead of 'gcc': - gcc main.cpp -o test.exe + g++ main.cpp -o test.exe |