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

Re: gcc broken?



On Sat, May 23, 1998 at 12:00:00AM -0400, timothy@smasher.rs.itd.umich.edu wrote:
> Hi. My "dpkg -S cc1plus" returns that it is owned by g++, (Of which I have
> version 2.90.28-0.1. ), and that it lives in
> /usr/lib/gcc-lib/i486-linux/egcs-2.90.28/  .... I don't have any of the others
> though.
> ("apt-get install g++272" says it can't find a package with that name. :(.)
> Thanks for noticing the reply to addr. :).
> 
> Any ideas what to do now?

You can't use gcc to compile C++; you must use g++. This is because
gcc is standard GNU 2.7.2.3, while g++ is egcs 2.90.28. The gcc frontend
does not know how to compile C++ any more; you must call the g++ frontend
directly.

This is a problem with some makefiles which assumed that gcc could
compile C++. There are separate Make parameters for C++ though --
CXX=g++ or CCC=g++. (GNU make uses one, Sun's uses the other and
I can't remember which is which.) There are CXXFLAGS or something
similar to go with it. Also note that you can't usually use gcc
to do the linking either; use g++.

Hamish
-- 
Hamish Moffatt, hamish@debian.org, hamish@rising.com.au, hmoffatt@mail.com
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: