From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) Subject: Re: Non ANSI C ??? 3 May 1998 08:01:37 -0700 Message-ID: <19980503182756.44144.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU> References: <3548DEBC DOT 913E2D44 AT bigfoot DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Ross Johnson Cc: Alain CULOS , cygwin 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".