LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   /usr/bin/ld: cannot find -lSDLmain? (https://www.linuxquestions.org/questions/linux-software-2/usr-bin-ld-cannot-find-lsdlmain-833749/)

boidi 09-22-2010 05:20 AM

/usr/bin/ld: cannot find -lSDLmain?
 
Hi everyone,

while compiling g++ sdlcam.cpp -lSDL -lSDLmain -o sdlcam, i got the error like this

[/usr/bin/ld: cannot find -lSDLmain
collect2: ld returned 1 exit status]

please anybody help me

boidi 09-22-2010 05:40 AM

Quote:

Originally Posted by boidi (Post 4105530)
Hi everyone,

while compiling g++ sdlcam.cpp -lSDL -lSDLmain -o sdlcam, i got the error like this

[/usr/bin/ld: cannot find -lSDLmain
collect2: ld returned 1 exit status]

please anybody help me


can anyone help me

jangovich 09-22-2010 05:45 AM

Do you have `libsdl` installed? If you are on Ubuntu:

Code:

sudo apt-get install libsdl1.2-dev

knudfl 09-22-2010 06:15 AM

Your logo shows "LinuxFedora" ,,, then :

# yum install SDL-static SDL-devel

SDL-devel is probably already installed.
lSDLmain = 'libSDLmain.a' is provided by the package 'SDL-static'.

..

boidi 09-22-2010 06:29 AM

Quote:

Originally Posted by boidi (Post 4105530)
Hi everyone,

while compiling g++ sdlcam.cpp -lSDL -lSDLmain -o sdlcam, i got the error like this

[/usr/bin/ld: cannot find -lSDLmain
collect2: ld returned 1 exit status]

please anybody help me


can anyone help me


All times are GMT -5. The time now is 05:04 AM.