Re: inline and glib.h (was Re: ObjC and `glib.h')




(sorry for the overquoting, I'm cc-ing to the Gtk-- list too)

Tim Janik <timj@gtk.org> writes:

> On 4 Oct 1998, Guillaume Laurent wrote:
> 
> > Tim Janik <timj@gtk.org> writes:
> > 
> > > the current scheme works fine, even with C++, assuming there is no
> > > compiler out there that supports "inline" only for C++ and wouldn't
> > > know about "inline" in C mode.
> > 
> > But you don't necessarily use the same compiler for C and C++. You
> > mentioned lcc as a non inline aware C compiler.
> > 
> > Correct me if I'm wrong, but if you use lcc as a C compiler,
> > glibconfig.h will be set up so that glib.h #defines 'inline' away.
> > 
> > Then, if you try to compile something in C++ which includes glib.h,
> > you're trapped.
> > 
> > Or am I missing something ?
> 
> nope, that's correct, but the glibconfig.h defines are not only system specific
> ones, but compiler specific ones also. you can't switch compilers wihtout
> reconfiguring glib, there's much stuff beyond inlining that will fail.

OK, I suppose we'll just have to document this somewhere in Gtk-- then.

-- 
					Guillaume.
					http://www.worldnet.fr/~glaurent



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