[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: a bit off topic: gcc up to snuff?
From: Adam Wiggins <adam () angel ! com>
Date: 1999-09-30 22:05:06
[Download RAW message or body]
> I am trying to port some Windows code to Red Hat 6.0 Linux using the
> Winelib (egcs-2.91.66). I am running into all kinds of compiler "parse
> errors" on code that is pretty vanilla C/C++.
>
> Here are some examples:
>
> 1. Trailing C++ style comments.
>
> 1.0. if statements
> if (a)
> printf("a\n"); // this comment causes parse error
> 1.1. else statements
> if (a)
> printf("a\n");
> else
> printf("not a\n"); // this comment causes parse
Are you compiling the code as C++? I forget if gcc, compiling straight
C, will allow // comments. If the filename extensions are one of the
common C++ extensions (including .cpp, .C, .cc, and .c++) then it should
kick in automatically. If it's just .c, try using "-x c++" on the command
line.
=========================================================================
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic