Results 1 to 2 of 2

Thread: how i may compile sdl in linux

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Calcutta,West Bengal,India
    Posts
    13

    how i may compile sdl in linux

    Hello,

    How can compile a sdl program in
    Linux from the command prompt?..Like I compile opengl using just one command which
    links the necessary libs.

    Thanks in advance,
    anindya

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    5

    Re: how i may compile sdl in linux

    gcc/g++ [flags] -o target <source-files> `sdl-config --cflags --libs`

    That's pretty much it. Once you need OpenGL, you just add -lGL to the end.

Similar Threads

  1. How to compile under Linux
    By Rana in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-16-2004, 12:06 PM
  2. Compile Linux to NT
    By svd in forum OpenGL: Windows
    Replies: 1
    Last Post: 02-16-2004, 04:24 AM
  3. Will CPW compile on Mac OS X and Linux?
    By AlainODea in forum OpenGL: General
    Replies: 4
    Last Post: 04-02-2002, 12:37 PM
  4. How do you compile on Linux....
    By LaptuaZ in forum OpenGL: Linux
    Replies: 2
    Last Post: 06-17-2001, 09:52 AM
  5. linux compile
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-26-2001, 11:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean