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

Re: Question : compilation of glib.h



On Tue, 17 Nov 1998 10:32:46 -0700 (MST), gtk-app-devel-list@redhat.com (J Douglas Winters) wrote:
> The problem is that "inline" is not standard C (unfortunately).  I'm not
> sure what the "real" solution would be, but I imagine defining inline
> before including glib.h might do the trick:
> 
> #define inline
> #include <glib.h>

This should have been tested by autoconf with the AC_C_INLINE macro, but
read on...

> On Tue, 17 Nov 1998, oguerin wrote:
>> I am compiling an application calling the glib.
>> I include glib.h in my function,
>> and when I compile with cc, I have many errors (11) in attachment you
>> will find the compilation messages.
>> with gcc no problem.
>> My machine is an sgi octane with irix system 6.4, cc 7.2
>> and the glib is 1.1.4
>> Is there an option to make it compile with cc ?

I think the original poster compiled glib with gcc 2.8.1, so the library
was actually configured for gcc. After that, he tried to use it with the
SGI MipsPRO C compiler, which doesn't have the same features as gcc. Just
recompile glib with MipsPRO C.


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]