This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problems using gcc 3.0 and 3.0.1 on RedHat 7.0
- To: wjb at netpd dot com
- Subject: Re: Problems using gcc 3.0 and 3.0.1 on RedHat 7.0
- From: Frank Schafer <frank dot schafer at setuza dot cz>
- Date: Mon, 15 Oct 2001 08:10:18 +0200
- CC: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Organization: SETUZA a.s.
- References: <Pine.LNX.4.21.0110121522410.12846-100000@remover.netpd.com>
- Reply-To: frank dot schafer at setuza dot cz
Bill Bland wrote:
> Hello,
> I successfully compiled and installed gcc 3.0 and 3.0.1 (not at
> the same time!) on my i586 RH7.0 box. AFAICS I followed the instructions
> to the letter (built in a separate directory to the source, etc).
> The java and c compilers work fine. Unfortunately when compiling any c++
> code that contains the "new" and/or "delete" operators I get link warnings
> of the form:
>
> undefined reference to `operator new(unsigned)'
>
> I thought that this could be a problem with the linker, ld, so I
> compiled and installed the latest binutils which changed
> nothing. Re-installing the gcc rpms that come with RH7 makes it all work
> again, so it's not a problem with the c++ that I'm trying to compile (it's
> fltk for the record). But obviously I don't want to do this - I want
> gcc3 ;-)
> Has anyone seen anything like this before? Anyone know how to solve it?
>
> Best wishes and thanks in advance,
> Bill.
Hi Bill,
how did You name your sourcefiles? Have in mind, that *.c is C-source, *.C,
*.cpp or *.cxx is C++.
Frank
begin:vcard
n:Schafer;Frank
x-mozilla-html:FALSE
org:SETUZA a.s.;IT
adr:;;;;;;
version:2.1
email;internet:frank.schafer@setuza.cz
title:Dipl. Ing.
note:System administrator
x-mozilla-cpt:;0
fn:Frank Schafer
end:vcard