Quote:
Originally posted by Canadian_2k2
[andrew01@newman Documents]$ gcc-3.0.4 hi.i
hi.i:2: syntax error at '#' token
hi.i:2: parse error before '<' token
[andrew01@newman Documents]$
|
If you look at man gcc you'll find that
Code:
.i = .i preprocessed C; compile, assemble
Traditionally one would give a C++ source
the extension .C, .cc or .cpp ... that should help
you with that problem :)
Also you might want to call g++ rather than gcc
As for C++ infos/tutorials ... grab google.com/linux
and feed it with tutorial C++ :)
Or look
here :}
Cheers,
Tink