This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
undefined "new" reference w/ egcs
- To: egcs-bugs at cygnus dot com
- Subject: undefined "new" reference w/ egcs
- From: "Glenn W. Bach" <glenn at dodgson dot wonderland dot caltech dot edu>
- Date: Thu, 18 Jun 1998 12:28:15 -0700
I am moving from g++ 2.7.2.3 to the egcs version of g++ egcs-2.90.27
(egcs-1.0.2) in Linux for Intel.
When I attempt to link, I get the following error message:
/mnt/local/glenn/arrow-0.5/code/SMTPMessage.o: In function `ACE_Map_Manager<int, ACE_Svc_Tuple<JLineProtocol<ACE_SOCK_Stream> > *, ACE_Null_Mutex>::resize_i(unsigned int)':
/mnt/local/jafl/JX-1.1.16/jlib/ACE_wrappers/ace/Map_Manager.cpp:129:
undefined reference to `operator new(unsigned int, void *)'
I know that it is defined because if I try to inline it myself, I get the following error:
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27/include/new:44:
`void * operator new(unsigned int, void *)' previously defined here
I don't get this error message with the older version of g++.
I don't know if it's related or not, but our memory management code
redefines new, so whenever we use the ACE package, we are forced to:
#undef new
Does anyone have any ideas on the cause of this error?
Thanks,
Glenn W. Bach
PMA Network/Systems Manager
California Institute of Technology
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2
mQCNAzQxQucAAAEEAKDRj+qxIVg4sk71CigXG+DanD23/JSi4PxR78F0qVVnyCV3
qejYSw8wHdisMeWQb+m6jvm7MpfYar+H3DlalMJ69Tm4DLKMU4Bams+kVEiETis9
8Vj9jLaZ0SvG4vOZj69HcqhEnX8COtqmCBjECy/5wQMFCB1K3h6QzWp9VWLlAAUR
tClHbGVubiBXLiBCYWNoIDxnbGVubkBkb2Rnc29uLmNhbHRlY2guZWR1Pg==
=Uwn5
-----END PGP PUBLIC KEY BLOCK-----