Bradley Molnar on 8 Oct 2003 16:12:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] gcc vs cc vs c++


This is a question for anyone who knows some of the specifics with
compilers.

I have a program that uses a line like

cout << "stuff" << variable << endl;

and I get linker errors when trying to compile this using gcc or cc, but not
when I use c++ as the compiling command.  I have tried this on two RH9 and
one RH7.3 machines.

What exactly is the difference btwn gcc <file.cpp> and c++ <file.cpp>?

thanks
-b

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug