Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

SDL very strange errors

Started by DarkHamster Nov 6, 2002 at 7:56 PM 1 replies 150+ views
Original Post
DarkHamster
DarkHamster
Does anyone know why the following program: " #include <SDL/SDL.h> int main() { if( SDL_Init( SDL_INIT_VIDEO ) < 0 ) return 1; return 0; } " compiled with gcc sdltest.cpp sdl-config --cflags --libs would give /tmp/cct6hgSk.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'' collect 2: ld returned 1 exit status thanks


"There is no dark side of the moon really,
As a matter of fact, its all dark."
Null and Void
Null and Void
You''re using GCC 3.2, right? That doesn''t occur with 2.95.x, but I was able to reproduce and fix it with 3.2. Use ''g++'' instead of ''gcc'' at the command line and it goes away.

DarkHamster
DarkHamster
that does work
thank you =)


"There is no dark side of the moon really,
As a matter of fact, its all dark."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.