This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compile error
Hi all,
Sorry to bother again, but I could not find the source of this error. I tried
look at the GCC help page for a while, but I figured I'd check here.
This is the error (names replaced of course):
********************************************
Manager::receive_task()':
init.cpp:2168: jump to case label
init.cpp:2154: enters scope of non-POD `
MY_NICE_STRUCT_OBJECT trace'
********************************************
I can't find anything funny about this. This section is just a big switch
statement, which happens to delcare a MY_NICE_STRUCT_OBJECT inside a case
statement. As before...this is old WATCOM code, so maybe there's something in
here that's incompatible. Is trace a keyword?
If not, could anyone elaborate on what 'enters scope of non-POD' means?
Thanks,
Yamin
Quoting Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>:
> y2bismil@engmail.uwaterloo.ca writes:
>
> > I suspect GCC has "and" and "or" reserved as keywords or built in
> > macros, whereas watcom did not. Is this correct?
>
> Yes. g++ follows the standard here, whereas watcom apparently doesn't.
>
> > If it is, is there a way to turn off these keywords/macros in GCC.
>
> I don't think so. You'll have to rename those functions.
>
> --
> Falk
>
----------------------------------------
This mail sent through www.mywaterloo.ca