order of includes?

Ian Lance Taylor ian@airs.com
Sun Jan 8 05:55:00 GMT 2006


Brian Budge <brian.budge@gmail.com> writes:

> I am getting the following error:
> 
> error: expected `,' or `...' before numeric constant
> 
> The code is trivial, and has been successfully used before.  It is
> from a template library I wrote.
> 
> From searching google, I get the impression that it could be from
> #including things in the "wrong" order.  Could this be the case? 

It's very unlikely.

> Anybody have any tips or tricks for narrowing down the problem here?

Look closely at the source code.  If that doesn't help, run the
compile with --save-temps, and look at the relevant line in the .i (if
C) or .ii (if C++) file.

(Please don't reply to me personally; thanks.)

Ian



More information about the Gcc-help mailing list