Re: inline and glib.h (was Re: ObjC and `glib.h')
- From: Guillaume Laurent <glaurent worldnet fr>
- To: gtk-devel-list redhat com
- cc: Gtk-- mailing-list <gtkmm modeemi cs tut fi>
- Subject: Re: inline and glib.h (was Re: ObjC and `glib.h')
- Date: 04 Oct 1998 20:11:12 +0200
(sorry for the overquoting, I'm cc-ing to the Gtk-- list too)
Tim Janik <email@example.com> writes:
> On 4 Oct 1998, Guillaume Laurent wrote:
> > Tim Janik <firstname.lastname@example.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.
] [Thread Prev