Re: [gtk-list] Re: Installation GTK+ in Sun Sparc



On Thu, 13 Jan 2000 07:43:28 +0100 (MET), Joachim Backes wrote:
> On 13-Jan-00 Drazen Kacar wrote: 
>>  Takdir CHOWDHURY wrote:
>>  
>> > Is it possible to compile GTK+ and glib(version 1.2.2) with Sun CC compiler?
>>  
>>  I've never tried with CC, but it's perfectly possible to do it with cc.
>>  Glib and GTK+ are C sources, so it's natural to compile them with the C
>>  compiler.
> 
> can't agree with you!! If I try to compile some gtk+ applications with
> the IRIX cc compiler (IRIX 6.5.6), than problems arise with
> /usr/local/include/glib.h,
> so that the most sources can't be compiled. Only with gcc, compilation runs.
> 
> I think therefore, /usr/local/include/glib.h (for example) is not written
> in full compatible C!

GTK and GLIB are perfectly portable, but the IRIX MipsPRO C compiler is
not completely compatible with gcc. /usr/local/include/glib.h includes
/usr/local/lib/glib/include/glibconfig.h which contains all sorts of
*compile time* dependencies.

If you compiled GLIB with gcc and try to compile another C program with
IRIX cc, things may break. The other way around might work (compile GLIB
with IRIX cc, compile other programs with gcc) because gcc has a superset
of IRIX cc's features.

Anyway: unless you really need MipsPRO's nifty automatic parallelisation
features (-mp -pca), you could just stay with gcc. The latest gcc-2.95.2
generates code which is as fast as MipsPRO C, so performance loss is no
longer an issue. Gcc has much more warnings, and the warning (and error)
messages are much clearer.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/





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