Find the answer to your Linux question:
Results 1 to 3 of 3
Hello Linux Forums, Since i switched to fedora 10 from Kubuntu, i have had nothing but problems with compiling, first off make wasn't included ( which i got ) second ...
  1. #1
    Just Joined! Surak's Avatar
    Join Date
    Dec 2008
    Posts
    32

    Compiling errors

    Hello Linux Forums, Since i switched to fedora 10 from Kubuntu, i have had nothing but problems with compiling, first off make wasn't included ( which i got ) second for some reason c++ didnt work and thirdly, the issue i am here to discuss today is, nothing compiles with SDL. i try

    gcc -o sdlgame sdlgame.c `sdl-config --cflags --libs`

    but it just says SDL not found, so i tried yum -y install SDL it says SDL is latest version. do you guys know how i can get my SDL projects to compile?

    tl;dr SDL wont compile.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hello,

    generally, there is a difference between runtime libraries and development packages.

    The runtime libraries contain object code so that some program that uses SDL can run.

    But if you want to compile a program that uses SDL, you will need more than this. For example, the header files.

    See if there is some package called SDL-dev or similar.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined! Surak's Avatar
    Join Date
    Dec 2008
    Posts
    32
    Thank you, got "SDL-devel" that seems to work now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...