[svlug] interesting and exotic linking error in .o files of cpp program
David N. Welton
davidw at dedasys.com
Tue Nov 18 13:49:51 PST 2003
Jonathan Su <axolotlpacman at sbcglobal.net> writes:
> many people say if you are good at C, you can learn
> any language, as I was running a already tested c code
...
> #include <iostream>
> using namespace std;
...
> [pacman at localhost C]$ gcc io.cpp
!
That's C++ code and you are using a C compiler. You should use g++
and see how it goes...
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
More information about the svlug
mailing list