From: Oscar F. <of...@wa...> - 2002-05-24 21:30:35
|
vik...@t-... (Viktor Ransmayr) writes: > Hello, > > I have installed MinGW, MSYS and GCC on my i686-laptop running Window XP. > > Compiling a simple C++ program: > > #include <iostream> > > int main () > { > std::cerr << "sizeof (double) = " << sizeof (double) << '\n' > << "sizeof (long double) = " << sizeof (long double) > << std::endl; > return 0; > } > > I get the following error log: > > C:\DOKUME~1\vr\LOKALE~1\Temp/ccOyaaaa.o(.text+0x4e):sizes.cpp: > undefined reference to `std::basic_ostream<char, [snip] Try compiling and linking with 'g++' instead of 'gcc'. 'g++' links the C++ library by default, gcc not. -- Oscar |