Article View: gnu.g++.help
Article #706Re: Problem linking with g++ class
From: Leif Lonnblad
Date: Tue, 26 Jan 1993 18:43
Date: Tue, 26 Jan 1993 18:43
20 lines
1380 bytes
1380 bytes
I think your problem is the '#pragma interface' directive in the mpf14.h file. Among other things this instructs gcc not to produce code for inline functions defined in this file, unless there is a corresponding '#pragma implementation' directive in the '.c' file currently beeing compiled. (do 'man gcc' for details) This should not matter if all the inline functions actually were compiled inline, but as you haven't declared them inline in the class declaration, they will not even be considered for inlining by gcc (I guess it would be appropriate if gcc warned about this). Leif --------------------------------------------------------------- Leif Lonnblad, DESY (-T-), Notkestr. 85, 2000 Hamburg 52, FRG phone: +49-40-8998-2048, fax: +49-40-8998-2777 e-mail: <lonnblad@ips102.desy.de>, <leif@thep.lu.se>
Technical Details
Message-ID:
<LONNBLAD.93Jan26104420@thnextb.SLAC.Stanford.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!unixhub!thnextb.SLAC.Stanford.EDU!lonnbladReferences:
<1k3jc2INNjnk@iskut.ucs.ubc.ca>Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!unixhub!thnextb.SLAC.Stanford.EDU!lonnblad From: lonnblad@thnextb.SLAC.Stanford.EDU (Leif Lonnblad) Subject: Re: Problem linking with g++ class In-Reply-To: keith@msmri.med.ubc.ca's message of 26 Jan 1993 14:54:58 GMT Message-ID: <LONNBLAD.93Jan26104420@thnextb.SLAC.Stanford.EDU> Lines: 21 Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <1k3jc2INNjnk@iskut.ucs.ubc.ca> Date: Tue, 26 Jan 1993 18:43:53 GMT