Article View: gnu.gcc.bug
Article #5996Overloaded new operator using GNU C++
From: maa
Date: Tue, 24 Dec 1996 00:00
Date: Tue, 24 Dec 1996 00:00
33 lines
1966 bytes
1966 bytes
I am integrating C++ code into code which was generated through DB-UIMX. We
are not using the database portion of the tool, just the GUI. I am using the
makefile which was generated by DB-UIMX and the code compiles and links fine
until I include the C++ code which was also compiled and linked using GNU C++.
I am using GNU C++ 2.7.2 compiler and library on a SUNOS platform ( not Solaris)
and I am getting the following error:
Compiling ProjectFiles.cc {C++] [UX-CODE]
/usr/local/lib/g++-include/defalloc.h: In function `class String * allocate
(int,class String *)`:
In file included from /projects/backend/include/Modelist.h:7,
from /projects/backend/include/Backend.h:6,
from ProjectFiles.cc:16:
/usr/local/lib/g++-include/defalloc.h:50: call of overloaded `operator new` is
ambiguous
/usr/local/lib/g++-include/std/new.h:24: candidates are: operator new(int)
<internal>:50: operator new(long unsigned int)
/usr/local/lib/g++-include/defalloc.h: In function `struct list<String>::
list_node * allocate(int, struct list<String>;;list_node *)':
/usr/local/lib/g++-include/defalloc.h:50: call of overloaded `operator new` is
ambiguous
/usr/local/lib/g++-include/new.h:24: candidates are: operator new(int)
<internal>:50; operator new(long unsigned int)
*** Error code 1
make: Fatal error: Command failed for target `ProjectFiles.o`
Any advice or solutions???
Technical Details
Message-ID:
<9612241827.AA02062@afterlife.ncsc.mil>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,37d04616151a40b3,start X-Google-Attributes: gid113d02,public From: maa@afterlife.ncsc.mil Subject: Overloaded new operator using GNU C++ Date: 1996/12/24 Message-ID: <9612241827.AA02062@afterlife.ncsc.mil> X-Deja-AN: 205811664 sender: bug-gcc-request@prep.ai.mit.edu content-type: text/plain; charset=US-ASCII content-md5: 7Wd2/znOqmMpNvaPUCrexA== x-gateway: relay1.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 24 Dec 1996 13:28:01 EST mime-version: 1.0 newsgroups: gnu.gcc.bug