Problems compiling under Linux

Hi all,

I?ve written a SDL program and tried to compile it under linux (Knoppix 3.1 installation).
The result was a bunch of syntax error messages in the SDL header files like
SDL_types.h, SDL_timer.h, SDL_video.h, SDL.h.

Compiling the same stuff under Windows was successful.

Does anyone know what the problem could be?
I’d appreciate any idea.

With best regards

Drakos

What were the exact error messages?

“Compiling the same stuff” means that you’re using the same .h files, or the equivalent files from the linux packages?

Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy> ----- Original Message -----

From: Drakos [mailto:drakos@bloodtide.de]
Sent: Mi?rcoles, 04 de Junio de 2003 03:43 p.m.
To: sdl at libsdl.org
Subject: [SDL] Problems compiling under Linux

Hi all,

I?ve written a SDL program and tried to compile it under linux (Knoppix 3.1 installation). The result was a bunch of syntax error messages in the SDL header files like SDL_types.h, SDL_timer.h, SDL_video.h, SDL.h.

Compiling the same stuff under Windows was successful.

Does anyone know what the problem could be?
I’d appreciate any idea.

With best regards

Drakos


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Just for information I use for compiling the g++ compiler.
And one exact error message is:
In file included from /usr/include/sdl/SDL_mouse.h:34,
from /usr/include/sdl/SDL_events.h:36,
from /usr/include/sdl/SDL.h:42,
from /src/…/include/CSDLProgram.h:8,
from src/…/include/MySDLProgram.h:11,
from src/main.cpp:5 :
/usr/include/sdl/SDL_video.h:596 :
syntax error before ‘(’

Compiling the same stuff means that I compile my files with the windows package.

Drakos