This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: Non ANSI C ???


The '-traditional' option will compile C-language code in non-ANSI mode.
Have you tried that yet?

... jeff

At 06:27 PM 5/3/98 +1000, Fergus Henderson wrote:
>On 03-May-1998, Ross Johnson <rpj@ise.canberra.edu.au> wrote:
>> On Thu, 30 Apr 1998, Alain CULOS wrote:
>> 
>> > Hi All,
>> > 
>> > I tried to compile this wonderfull POV-Ray package, the windows
version, unfortunately it looks like it does not follow the correct C
syntax (but I am only guessing as I'm a newby to C++ and mingw32).
>> > Or is there a possibility I am misusing make and gcc command line
options ?
>
>Yes.
>
>> > Here is an example of the type of code that does not compile :
>> > =========
>> > void CheckIt (ThisOne)
>> >   int ThisOne;
>> > {
>> >   DoItNow ();
>> > }
>
>That's strictly conforming ANSI C code.
>It is using old-style (K&R) function definitions
>rather than ANSI C style function prototypes,
>but it is still allowed by the 1989 C standard.
>GNU C (gcc) does support such code.
>C++ and GNU C++ (g++) do not.
>
>> > Else, is there any commonly available utility to convert all files
automatically for me ?
>> > 
>> 
>> The protoize.exe command does this for you. The only doco I can find
>> immediately is this:
>
>There is texinfo documentation for protoize -- it's part of the
>gcc documentation.  Look for `Running protoize' in the
>`Invocation' section of the GNU C manual. 
>(Try the command `info -f gcc invo runn'.)
>
>-- 
>Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
>WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
>PGP: finger fjh@128.250.37.3        |     -- the last words of T. S. Garp.
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
> 

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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