K
Ken
Hi,
When I compile a c/c++ program named softlines.cpp here
http://linuxdevcenter.com/linux/2003/05/15/examples/softlines.cpp
I got error like below, could somebody help provide suggestion?
$ gcc -o softlines softlines.c `sdl-config --cflags --libs`
softlines.o: In function `main':
softlines.cpp.text+0x8e6): undefined reference to `operator new
(unsigned int)'
softlines.cpp.text+0x980): undefined reference to `operator new
(unsigned int)'
softlines.cpp.text+0xa1a): undefined reference to `operator new
(unsigned int)'
softlines.o.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
When I compile a c/c++ program named softlines.cpp here
http://linuxdevcenter.com/linux/2003/05/15/examples/softlines.cpp
I got error like below, could somebody help provide suggestion?
$ gcc -o softlines softlines.c `sdl-config --cflags --libs`
softlines.o: In function `main':
softlines.cpp.text+0x8e6): undefined reference to `operator new
(unsigned int)'
softlines.cpp.text+0x980): undefined reference to `operator new
(unsigned int)'
softlines.cpp.text+0xa1a): undefined reference to `operator new
(unsigned int)'
softlines.o.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status