A Strange Compile Error

This is a discussion on A Strange Compile Error within the Tech Board forums, part of the Community Boards category; Hi, I hope this is the right place to ask such a question. First things first: I am using FC5; ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    25

    A Strange Compile Error

    Hi,

    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/libSDL_image-1.2.so.0" and "/usr/lib/libSDL_image-1.2.so.0.1.3" 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
    Location
    New York
    Posts
    1,465
    Do you have to specify version? (lSDL_image-1.2)

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  3. #3
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Perhaps make a symlink and call it libSDL_image.so.

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

    "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
    Posts
    25
    Thanks, everyone, for your responses.

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

    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21