I think I did something wrong configuring the compiler options, but I can't find anything. I'm using MinGW, and I get this:
-------------- Build: Debug in test ---------------
Linking console executable: bin\Debug\test.exe
obj\Debug\main.o: In function `ZSt17__verify_groupingPKcjRKSs':C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2494: undefined reference to `std::string::size() const'
:C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2503: undefined reference to `std::string::operator[](unsigned int) const'
:C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2505: undefined reference to `std::string::operator[](unsigned int) const'
:C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2508: undefined reference to `std::string::operator[](unsigned int) const'
obj\Debug\main.o: In function `main':C:/Documents and Settings/Andrew/My Documents/My Projects/SGC/Client/test/main.cpp:6: undefined reference to `_alloca'
:C:/Documents and Settings/Andrew/My Documents/My Projects/SGC/Client/test/main.cpp:6: undefined reference to `__main'
:C:/Documents and Settings/Andrew/My Documents/My Projects/SGC/Client/test/main.cpp:7: undefined reference to `std::cout'
:C:/Documents and Settings/Andrew/My Documents/My Projects/SGC/Client/test/main.cpp:7: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
:C:/Documents and Settings/Andrew/My Documents/My Projects/SGC/Client/test/main.cpp:7: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
:C:/Documents and Settings/Andrew/My Documents/My Projects/SGC/Client/test/main.cpp:7: undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
obj\Debug\main.o: In function `Z41__static_initialization_and_destruction_0ii':C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/iostream:77: undefined reference to `std::ios_base::Init::Init()'
:C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/iostream:77: undefined reference to `std::ios_base::Init::~Init()'
Process terminated with status 1 (0 minutes, 0 seconds)
12 errors, 0 warnings
when compiling this:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
I'm using a recent nightly.