This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: order of includes?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]