[SDL] Getting started on Linux...
Sergey Ulanov
sulanov at land.ru
Thu Nov 28 08:45:02 PST 2002
On Thu, Nov 28, 2002 at 04:47:33PM +0200, Asko Kauppi wrote:
>
> This must be a dead-simple thing but I didn't find a cure on the SDL
> website.
>
> I started trying SDL and made a little 'Alive.cpp' app. Works fine on Win32
> (Visual C++ 6.0).
> When trying to compile the same on Linux, I get a _lot_ of X11 compilation
> errors.
>
> Here's the compile command:
> gcc -o out/alive Alive.cpp `sdl-config --cflags --libs`
try here `sdl-config --cflags --static-libs`
>
> Which translates into:
> gcc -o out/alive Alive.cpp -I/usr/include/SDL -D_REENTRANT
> -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
--
Sergey Ulanov
sulanov at land.ru
More information about the SDL
mailing list