home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.help
- Path: 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
-
- 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
-