home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / g / help / 1417 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.1 KB  |  34 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!virtech!cpcahil
  3. From: cpcahil@vti.com (Conor P. Cahill)
  4. Subject: Re: Help with g++/CC problem
  5. Message-ID: <BxI3D4.E1F@vti.com>
  6. Organization: Virtual Technologies Inc.
  7. References: <BxGJo4.G0z@usenet.ucs.indiana.edu>
  8. Date: Tue, 10 Nov 1992 12:43:51 GMT
  9. Lines: 23
  10.  
  11. In article <BxGJo4.G0z@usenet.ucs.indiana.edu>, msingh@silver.ucs.indiana.edu (The Supreme Commander) writes:
  12. > I have a c++ program that compiles fine under the Sun CC compiler, and
  13. > I've managed to massage the code so that g++ accepts it, but I get
  14. > this linker error:
  15. > _malloc__FUl 
  16.  
  17. This is the symbol generated for "void malloc(unsigned long)" when it 
  18. is not defined to be an external C function.  What you probably need
  19. to do is add something like the following somewhere in your header
  20. file (whereever you define malloc):
  21.  
  22. extern "C"
  23. {
  24.     void     * malloc(unsigned long);
  25. };
  26.  
  27.  
  28. -- 
  29. *** SENTINEL(tm) The ultimate Debugging Environment - email for more info ***
  30.  
  31. Conor P. Cahill              (703)430-9247            cpcahil@virtech.vti.com
  32. Virtual Technologies, Inc.  46030 Manekin Plaza          Dulles, VA 20166 
  33.