LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   SDL compiling problem (https://www.linuxquestions.org/questions/programming-9/sdl-compiling-problem-247641/)

kubaj 10-26-2004 05:07 PM

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

itsme86 10-26-2004 05:17 PM

The correct way to compile an SDL application is:
g++ `sdl-config --cflags` my_program.cpp -o my_program `sdl-config --libs`

kubaj 10-27-2004 11:15 AM

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.