Re: gcc 3.3 cmath undefined errors

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

 



Hi Wes,

>I have a question though about gcc -x c++/g++.  Are these the same thing?  What's the difference?

They are not the same thing.

gcc executes the C toolchain, and puts in C flags, C defines and C libraries.

g++ executes the C++ toolchain, and puts in C++ flags, C++ defines, and C++ libraries.

What all the little fiddly bits are I'm not 100% sure.  Use the -v flag (verbose) to see what they produce for you on your system.

Careful use of gcc can make it behave identical to g++.  But why bother?  :-)

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux