SDL_gui-0.10.3/demo compiling problem

Hi All,
I have SDL_gui-0.10.3 src, I have compiled the library
successfully and by default installed in /usr/local/ . Then after I did
ldconfig. Then inside the SDL_gui-0.10.3, there is one dir, demo. In
that already compiled executables are there, if run those files, saying
error in loading shared library libSDL_gui-0.10.2.so. What to do
now…?? Then I tried to do recompile those files, if I do make
distclean, configure, and make in that dir, then I’m getting the
following error:

lohitha @ demo $ make
gcc -Wall -Werror -I./include -g -O2 -I/usr/local/include/SDL
-D_REENTRANT -o uitest uitest.o -lSDL_gui -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -lSDL -lpthread -lSDL_image
/usr/local/lib/libSDL_gui.so: undefined reference to __cxa_free_exception' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
new[](unsigned int)’
/usr/local/lib/libSDL_gui.so: undefined reference to operator delete[](void*)' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
delete(void*)’
/usr/local/lib/libSDL_gui.so: undefined reference to __cxa_pure_virtual' /usr/local/lib/libSDL_gui.so: undefined reference to__cxa_allocate_exception’
/usr/local/lib/libSDL_gui.so: undefined reference to __gxx_personality_v0' /usr/local/lib/libSDL_gui.so: undefined reference to__cxa_throw’
/usr/local/lib/libSDL_gui.so: undefined reference to vtable for __cxxabiv1::__class_type_info' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
new(unsigned int)’
/usr/local/lib/libSDL_gui.so: undefined reference to `vtable for
__cxxabiv1::__si_class_type_info’
collect2: ld returned 1 exit status
make: *** [uitest] Error 1

please guide me…!!!–
Lohitha R

I may be wrong, but those sound like “Missing C++” errors. Try using g++
instead of gcc?

Jonny DOn Sun, May 16, 2010 at 11:42 PM, Lohitha R <lohitha.r at globaledgesoft.com>wrote:

Hi All,
I have SDL_gui-0.10.3 src, I have compiled the library successfully
and by default installed in /usr/local/ . Then after I did ldconfig. Then
inside the SDL_gui-0.10.3, there is one dir, demo. In that already compiled
executables are there, if run those files, saying error in loading shared
library libSDL_gui-0.10.2.so. What to do now…?? Then I tried to do
recompile those files, if I do make distclean, configure, and make in that
dir, then I’m getting the following error:

lohitha @ demo $ make
gcc -Wall -Werror -I./include -g -O2 -I/usr/local/include/SDL -D_REENTRANT
-o uitest uitest.o -lSDL_gui -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-lSDL -lpthread -lSDL_image
/usr/local/lib/libSDL_gui.so: undefined reference to __cxa_free_exception' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
new[](unsigned int)’
/usr/local/lib/libSDL_gui.so: undefined reference to operator delete[](void*)' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
delete(void*)’
/usr/local/lib/libSDL_gui.so: undefined reference to __cxa_pure_virtual' /usr/local/lib/libSDL_gui.so: undefined reference to__cxa_allocate_exception’
/usr/local/lib/libSDL_gui.so: undefined reference to __gxx_personality_v0' /usr/local/lib/libSDL_gui.so: undefined reference to__cxa_throw’
/usr/local/lib/libSDL_gui.so: undefined reference to vtable for __cxxabiv1::__class_type_info' /usr/local/lib/libSDL_gui.so: undefined reference tooperator new(unsigned
int)’
/usr/local/lib/libSDL_gui.so: undefined reference to `vtable for
__cxxabiv1::__si_class_type_info’
collect2: ld returned 1 exit status
make: *** [uitest] Error 1

please guide me…!!!


Lohitha R


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Or link to libstdc++, since it is compiling as C++, just not with the
standard library.
These are linker errors, not compiler errors.On 17/05/2010, Jonathan Dearborn wrote:

I may be wrong, but those sound like “Missing C++” errors. Try using g++
instead of gcc?

Jonny D

On Sun, May 16, 2010 at 11:42 PM, Lohitha R <lohitha.r at globaledgesoft.com>wrote:

Hi All,
I have SDL_gui-0.10.3 src, I have compiled the library
successfully
and by default installed in /usr/local/ . Then after I did ldconfig. Then
inside the SDL_gui-0.10.3, there is one dir, demo. In that already
compiled
executables are there, if run those files, saying error in loading shared
library libSDL_gui-0.10.2.so. What to do now…?? Then I tried to do
recompile those files, if I do make distclean, configure, and make in that
dir, then I’m getting the following error:

lohitha @ demo $ make
gcc -Wall -Werror -I./include -g -O2 -I/usr/local/include/SDL
-D_REENTRANT
-o uitest uitest.o -lSDL_gui -L/usr/local/lib -Wl,-rpath,/usr/local/lib
-lSDL -lpthread -lSDL_image
/usr/local/lib/libSDL_gui.so: undefined reference to
__cxa_free_exception' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
new[](unsigned int)’
/usr/local/lib/libSDL_gui.so: undefined reference to operator delete[](void*)' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
delete(void*)’
/usr/local/lib/libSDL_gui.so: undefined reference to __cxa_pure_virtual' /usr/local/lib/libSDL_gui.so: undefined reference to__cxa_allocate_exception’
/usr/local/lib/libSDL_gui.so: undefined reference to
__gxx_personality_v0' /usr/local/lib/libSDL_gui.so: undefined reference to__cxa_throw’
/usr/local/lib/libSDL_gui.so: undefined reference to vtable for __cxxabiv1::__class_type_info' /usr/local/lib/libSDL_gui.so: undefined reference tooperator
new(unsigned
int)’
/usr/local/lib/libSDL_gui.so: undefined reference to `vtable for
__cxxabiv1::__si_class_type_info’
collect2: ld returned 1 exit status
make: *** [uitest] Error 1

please guide me…!!!


Lohitha R


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org