Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-29-2003, 04:23 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Angry SDL compiltaion problem!!!

hi ppls,
i'm a new programmer in linux provblem with the SDL library.i downloaded the SDL source file yesterday and when i tried to first use it in a very simple porgram.but when i tried to compile with gcc with the follwing command i got the followinf messages.i can figure out what is the fault.can please any one explain whats the reason for this

gcc sdl.c -L/usr/local/lib -lSDL -o out

/usr/local/lib/ reference to 'pthread_create'
/usr/local/lib/ reference to 'pthread_cancel'
/usr/local/lib/ reference to 'sem_destroy'
/usr/local/lib/ reference to 'sem_wait'
/usr/local/lib/ reference to 'sem_post'
/usr/local/lib/ reference to 'sem_init'
/usr/local/lib/ reference to 'phread_sigmask'
/usr/local/lib/ reference to 'sem_trywait'
/usr/local/lib/ reference to 'pthread_mutexattr_init'
/usr/local/lib/ reference to 'sem_getvalue'
/usr/local/lib/ reference to 'pthread_join'
collet2:ld returned 1 exit status

thanx everyone.
Old 09-29-2003, 04:53 PM   #2
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Use the sdl-config program to get the compiler flags and linker flags right.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 08:50 AM
SDL transparency problem unholy Programming 7 08-13-2004 02:41 PM
gngeo and sdl problem huntermix Slackware 0 08-12-2004 06:15 PM
ScreenMode Problem with SDL kvasarnomad Linux - Software 0 07-27-2004 05:24 PM
gl-117 sdl problem LavaDevil94 Linux - Software 2 09-10-2003 05:18 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration