xfdesktop not compiling on BSD

edscott wilson garcia edscott at imp.mx
Wed Feb 12 16:07:26 CET 2003

Jasper, Biju:

xfdesktop compilation (gcc 2.95.4) fails:

In file included from main.h:38,
                 from backdrop.c:24:
debug.h:25: syntax error
*** Error code 1

The line of code is:

# if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)

That's a first for me. Never seen the use of "? :" in a compiler
directive. But that's not what causes the compilation to stop. It's the 
__GNUC_PREREQ () which apparently does not work. Maybe it would work to
make configure script require gcc >= 2.6 and change the directive to 

# if defined __cplusplus ? 1: 0

(Who uses gcc < 2.90 anyway?)


More information about the Xfce4-dev mailing list