Thread: A Strange Compile Error

  1. #1
    Registered User
    Join Date
    Dec 2005

    A Strange Compile Error


    I hope this is the right place to ask such a question. First things first: I am using FC5; my installation is fairly up-to-date. Over the weekend I downloaded a whole bunch of SDL libraries.

    I am now trying to compile a programme that requires SDL_image. I know I have the library, because (a) "locate" returns "/usr/lib/" and "/usr/lib/" among others, and (b) I can run another applications that makes use of this library.

    But when I type "make all" in this programme, I get the following error:

    /usr/bin/ld: cannot find -lSDL_image
    collect2: ld returned 1 exit status
    make: *** [client] Error 1
    Can someone please tell me what is going on?

    Thanks in advance for your help.

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    New York
    Do you have to specify version? (lSDL_image-1.2)

  3. #3
    pwns nooblars
    Join Date
    Oct 2005
    Portland, Or
    Perhaps make a symlink and call it

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Have you installed the SDL dev packages?
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Registered User
    Join Date
    Dec 2005
    Thanks, everyone, for your responses.

    Yes, it turned out to be a matter of symlinking the numbered version to

    CornedBee, I want to install the SDL devel packages, and I also want to install the OpenGL devel packages. I just cannot seem to find the right yum command. If you happen to know it off the top of your head, I would be very grateful to you. (SDL_devel and opengl_devel don't work.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 12:17 AM
  4. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  5. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM