Hi everyone,

I’m trying to build SDL current CVS with aalib and gcc. On Solaris 10, aalib is
located in /opt/sfw/include & /opt/sfw/lib
so I’ve set :
export LDFLAGS=-L/opt/sfw/lib/
export CFLAGS=-I/opt/sfw/include/
export CPPFLAGS=-I/opt/sfw/include/

before ./configure --enable-aalib

in config.log :
g++ -c -I/opt/sfw/include/ -I./include -D_GNU_SOURCE=1 -I/usr/local/include
-I/opt/sfw/include/ -I./include -D_GNU_SOURCE=1 -I/usr/local/include conftest.c

In file included from conftest.c:97:
/opt/sfw/include/aalib.h:186: error: conflicting declaration ‘typedef struct
aa_hardwareparams aa_hardware_params’
/opt/sfw/include/aalib.h:63: error: ‘struct aa_hardware_params’ has a previous
declaration as `struct aa_hardware_params’

with g++ and a minimal source, I’ve also this error but with gcc, all is fine.
Since SDL is C only (?), why not use gcc in configure ?

By the way, it seems that maybe aalib need to be upgrade. I’m using the 1.2,
I’ll check later with the latest 1.4rc4. Or maybe my gcc is broken.
( gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) )


Quoting Michael Bonfils :

Since SDL is C only (?), why not use gcc in configure ?


I’m silly and confused cc, CC & CXX variables

Sorry and happy weekend