Subject: Re: c++ compiler command line argument passing
To: None <>
From: Kevin Cousins <>
List: tech-toolchain
Date: 08/09/2000 13:29:56
    Joseph> I am trying to compile the following simple c++ program
    Joseph> called
    Joseph> for(i = 0, i < argc, i++) cout << argv[i];
    Joseph> 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.