Article View: gnu.g++.help
Article #449Re: Help with g++/CC problem
From: Conor P. Cahill
Date: Tue, 10 Nov 1992 12:43
Date: Tue, 10 Nov 1992 12:43
23 lines
1162 bytes
1162 bytes
In article <BxGJo4.G0z@usenet.ucs.indiana.edu>, msingh@silver.ucs.indiana.edu (The Supreme Commander) writes:
>
> I have a c++ program that compiles fine under the Sun CC compiler, and
> I've managed to massage the code so that g++ accepts it, but I get
> this linker error:
> _malloc__FUl
This is the symbol generated for "void malloc(unsigned long)" when it
is not defined to be an external C function. What you probably need
to do is add something like the following somewhere in your header
file (whereever you define malloc):
extern "C"
{
void * malloc(unsigned long);
};
--
*** SENTINEL(tm) The ultimate Debugging Environment - email for more info ***
Conor P. Cahill (703)430-9247 cpcahil@virtech.vti.com
Virtual Technologies, Inc. 46030 Manekin Plaza Dulles, VA 20166
Technical Details
Message-ID:
<BxI3D4.E1F@vti.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!virtech!cpcahilReferences:
<BxGJo4.G0z@usenet.ucs.indiana.edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help Path: arc1-ca.pugleaf.net!sparky!uunet!virtech!cpcahil From: cpcahil@vti.com (Conor P. Cahill) Subject: Re: Help with g++/CC problem Message-ID: <BxI3D4.E1F@vti.com> Organization: Virtual Technologies Inc. References: <BxGJo4.G0z@usenet.ucs.indiana.edu> Date: Tue, 10 Nov 1992 12:43:51 GMT Lines: 23