At Tue, 26 Mar 2002 14:59:38 -0800, "Justin C. Walker" <email@hidden> wrote:
>
> On Tuesday, March 26, 2002, at 08:24 AM, Francois Reboursier wrote:
> >
> > When I try to compile apps using Gtk, I often got the following
> > error:
> >
> > support.c:1321: bad macro argument list
> > cpp-precomp: warning: errors during smart preprocessing, retrying in
> > basic
> > mode
> >
> > I assume that cpp is doing bad, but I don't understand the error message
>
> The message is a bit obscure, but I believe that the complaint is that
> the default preprocessor, which relies on precompiled headers, can't
> grok what's going on in your source. It will, in the face of errors,
> try the "traditional" version of the precompiler. This kind of thing
> often shows up when porting unix-y things to darwin.
>
> You may want to add -traditional-cpp (or the more recent, and preferred
> -no-cpp-precomp; I'm sadly ignorant of the spelling, though) to your
> CFLAGS when building for Darwin. This avoids the problem altogether.
> I'd only do this if you run into a lot of this, because if the compiles
> generally succeed, the use of precompiled headers speeds up the build
> noticeably.
In my porting, I use the "-Wno-precomp" flag, which will suppress these
warnings, as they are truly benign. Although as mentioned, precompiled
headers do speed up compilation.
-Conrad
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.