home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / help / 1708 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.3 KB  |  34 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!stanford.edu!unixhub!thnextb.SLAC.Stanford.EDU!lonnblad
  3. From: lonnblad@thnextb.SLAC.Stanford.EDU (Leif Lonnblad)
  4. Subject: Re: Problem linking with g++ class
  5. In-Reply-To: keith@msmri.med.ubc.ca's message of 26 Jan 1993 14:54:58 GMT
  6. Message-ID: <LONNBLAD.93Jan26104420@thnextb.SLAC.Stanford.EDU>
  7. Lines: 21
  8. Sender: news@unixhub.SLAC.Stanford.EDU
  9. Organization: Stanford Linear Accelerator Center
  10. References: <1k3jc2INNjnk@iskut.ucs.ubc.ca>
  11. Date: Tue, 26 Jan 1993 18:43:53 GMT
  12.  
  13.  
  14.  
  15. I think your problem is the '#pragma interface' directive in the
  16. mpf14.h file. Among other things this instructs gcc not to produce
  17. code for inline functions defined in this file, unless there is a
  18. corresponding '#pragma implementation' directive in the '.c' file
  19. currently beeing compiled. (do 'man gcc' for details)
  20.  
  21. This should not matter if all the inline functions actually were
  22. compiled inline, but as you haven't declared them inline in the class
  23. declaration, they will not even be considered for inlining by gcc (I
  24. guess it would be appropriate if gcc warned about this).
  25.  
  26.  
  27. Leif
  28.  
  29. ---------------------------------------------------------------
  30. Leif Lonnblad, DESY (-T-), Notkestr. 85, 2000 Hamburg 52, FRG
  31. phone: +49-40-8998-2048,  fax: +49-40-8998-2777              
  32. e-mail: <lonnblad@ips102.desy.de>, <leif@thep.lu.se>
  33.  
  34.