Crosscompiler linking problems

I have been trying to get my program to cross compile for way too
many hours now. I finally got it to compile, but now it has a few linker
errors.
If anyone knows how to eliminate them please let me know.
SDL ver 1.2.0
I am on a i386 RH7.0 Linux machine
trying to cross compile to win32 with mingw32
Note: This program compiles fine natively for linux.
Here are the linker errors:==================================
/home/jaren/blox/src/shape.cpp:5: undefined reference to cerr' /home/jaren/blox/src/shape.cpp:5: undefined reerence toostream::operator<<(char const *)’
/home/jaren/blox/src/shape.cpp:6: undefined reference to `endl(ostream
&)’
/usr/local/cross-tools/i386-mingw32msvc/lib/libSDLmain.a(SDL_main.o.bSDL_main.o.

b): In function console_main': /home/jaren/downloads/SDL-1.2.0/src/main/SDL_main.c:172: undefined reference toSDL_main’

thanks a ton!
Jaren Peterson

I got the SDL_main one figured out after a look thru the mailing
list archive. Apperently you must have the argc and argv[] params in
your main function rather than just leaving it void.
I’m still getting the other two errors tho, if anyone has any ideas
they are deffinately welcome.
Thanks
Jaren Peterson

I have been trying to get my program to cross compile for way too

many hours now. I finally got it to compile, but now it has a few linker
errors.

Try adding -lstdc++ to your library line.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software