Subject: Re: c++ compiler command line argument passing
To: None <jsarkes@tiac.net>
From: Kevin Cousins <kevin.cousins@praxa.com.au>
List: tech-toolchain
Date: 08/09/2000 13:29:56
    Joseph> I am trying to compile the following simple c++ program
    Joseph> called t.cc:
...
    Joseph> for(i = 0, i < argc, i++) cout << argv[i];
...
    Joseph> t.cc:8: syntax error before `)'

    Joseph> What is wrong with the argument list accessing method I am
    Joseph> using?  It is the same as I am familiar with in C and also
    Joseph> what the Stroustrop C++ book spells out.  Is this MY
    Joseph> error, or the C++ compiler toolchain?

No problem with the toolchain.  Change your line to:

  for(i = 0; i < argc; i++) cout << argv[i];

N.B. s/,/;/g

and try again.

--
Kevin.