From: jeff AT fried DOT net (Jeff Fried) Subject: Re: Non ANSI C ??? 4 May 1998 02:47:29 -0700 Message-ID: <199805032230.RAA20151.cygnus.gnu-win32@dfw-ix13.ix.netcom.com> References: <19980503182756 DOT 44144 AT murlibobo DOT cs DOT mu DOT OZ DOT AU> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Fergus Henderson , Ross Johnson Cc: Alain CULOS , cygwin 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 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 | "I have always known that the pursuit >WWW: | of excellence is a lethal habit" >PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp. >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request AT cygnus DOT com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".