Compiling GTK apps with Sun's Forte compiler



Hi folks,

Sun's compiler doesn't seem to get on with GTK too well. Anyone got any
ideas what I can do to change this rather odd behaviour?

/opt/SUNWspro/bin/../WS6U1/bin/cc -g -mt -xCC  -c  -I.  -I/opt/gnu/include
-I/opt/gnu/include/glib  -I/opt/gnu/lib/glib/include -I/usr/openwin/include
-I/usr/dt/include -o output/rwaves2-filehandler.o rwaves2-filehandler.c
*** Error code 2
"/opt/gnu/include/glib.h", line 1554:  undefined or not a type: inline
"/opt/gnu/include/glib.h", line 1555:  parameter not in identifier list:
g_bit_nth_lsf
"/opt/gnu/include/glib.h", line 1557:  only "register" valid as formal
parameter storage class
"/opt/gnu/include/glib.h", line 1557:  parameter not in identifier list:
inline
"/opt/gnu/include/glib.h", line 1557:  syntax error before or at: gint
"/opt/gnu/include/glib.h", line 1560:  parameter not in identifier list:
g_bit_nth_lsf
"/opt/gnu/include/glib.h", line 1560:  parameter not in identifier list:
__func__
"/opt/gnu/include/glib.h", line 1560:  cannot initialize parameter: __func__
"/opt/gnu/include/glib.h", line 1563:  undefined symbol: nth_bit
"/opt/gnu/include/glib.h", line 1564:  undefined symbol: mask
"/opt/gnu/include/glib.h", line 1567:  undefined symbol: nth_bit
"/opt/gnu/include/glib.h", line 1569: warning:  statement not reached
"/opt/gnu/include/glib.h", line 1569:  cannot recover from previous errors

: cc: acomp failed for rwaves2-filehandler.c

dmake: Fatal error: Command failed for target `output/rwaves2-filehandler.o'

Thanks!

Rich




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]