public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems using gcc 3.0 and 3.0.1 on RedHat 7.0
@ 2001-10-12  7:29 Bill Bland
  2001-10-14 22:54 ` Frank Schafer
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Bland @ 2001-10-12  7:29 UTC (permalink / raw)
  To: gcc-help

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems using gcc 3.0 and 3.0.1 on RedHat 7.0
  2001-10-12  7:29 Problems using gcc 3.0 and 3.0.1 on RedHat 7.0 Bill Bland
@ 2001-10-14 22:54 ` Frank Schafer
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Schafer @ 2001-10-14 22:54 UTC (permalink / raw)
  To: wjb; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-14 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-12  7:29 Problems using gcc 3.0 and 3.0.1 on RedHat 7.0 Bill Bland
2001-10-14 22:54 ` Frank Schafer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).