#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    2
    Rep Power
    0

    Compiler Options


    Hello everyone,

    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 )
    int argc;
    char *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??????
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,626
    Rep Power
    4247
    -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
  4. #3
  5. Left due to despotic ad-min
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2003
    Posts
    1,044
    Rep Power
    14
    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.

IMN logo majestic logo threadwatch logo seochat tools logo