SDL compiling problem
Hi!
I'm trying to compile a simple program using SDL. The problem is that after executing a command: g++ -o my__program my_program.cpp -lSDL i receive error messages saying that there are unresolved references in libsdl.so. The functions that are 'lacking' are standard functions like pthread_create or sth like sem_init etc. Any suggestions, please...? thx in advance kubaj ps. i'm using vectorlinux SOHO 4.0 with SDL 1.2.5 installed as a part of the system |
The correct way to compile an SDL application is:
g++ `sdl-config --cflags` my_program.cpp -o my_program `sdl-config --libs` |
seems to be working, thanks
i was misled by a fact, that it worked on my previous installation of vl with sdl installed by hand, the way i've described in my previous post |
All times are GMT -5. The time now is 07:08 AM. |