August 19th, 2003, 08:39 AM
I have a question about DJGPP and possibly DevC++. In DJGPP, it allows for methods to be declared in the following way:
main( argc, argv )
DJGPP allows for the arguements to be declared on the lines following the method header. Then the body of the method can be declared. Does anybody know if there is a switch or command line compiler option for DevC++ or MingW that allows the compiler to compile methods declared that way??????
August 19th, 2003, 11:16 PM
-traditional or -std=c89 perhaps?
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
August 21st, 2003, 08:12 AM
Keep in mind that what you want has been deprecated (i.e. formally flagged as obsolete) in C since the 1989 standard came out. It has never been valid C++
That said -traditional is the most common flag to use on unix C compilers. I've yet to hear of it working sensibly to compile C++ code (eg class member functions) though.