Re: Forcing gcc to compile c++ programs...?

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

 



Hi Justin,

If it's a C++ program, are you using 'g++' instead of 'gcc'?

The 'g++' one includes all the C++ related stuff for linking, whereas 'gcc' does not.  If you wanted to use 'gcc' you have to include the C++ stuff explicitly.

--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