CompuServe Messages

Stream.h Error?

    19-Jul-93 23:54:33
Sb: #7173-Stream.h Error?
Fm: John Baxter 71735,1626
To: Dennis Jones 70337,1250
Dennis, One way or another, you are compiling C++ code using the C compiler. Make sure you name your file with an extension which is being mapped to the C++ translator. [See the extensions page of the TPM preferences to see which translator the .cp extension is going to, or use .cpp to be (reasonably) sure.] The syntax error in stream.h results from the string "C" following the extern…C doesn't expect a string literal there. The syntax error on the long finishTime = TickCount (); (or is it endTime???) line comes because C is not expecting a declaration there, since it has already seen code statements in the scope. –John