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.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | If you're not confused,
| You're not paying attention
*--------------------------------------*-------------------------------*
_______________________________________________
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.