Article View: gnu.gcc.help
Article #50187gcc version 2.1 C++ templates
From: Jonathan C. Hansen
Date: Thu, 11 Nov 1993 22:11
Date: Thu, 11 Nov 1993 22:11
17 lines
1702 bytes
1702 bytes
Hi Gnus. I've gotten a copy of the 2.1 gcc/g++ compiler, and it won't let me compile template member functions in a separate file from the class declaration header, at least not so it will link properly. I've talked to some folks, and they claim that this is not a bug, and is a result of the g++ compiler being one pass; one should include the template functions in the header, so an instantiation can happen in one pass. However, this is not the Stroustrup C++ dogma, so I'd like verification from the gnu's mouth. Actually, I have the Richard Stallman "Using and Porting GNU CC", but could find no mention of this topic. Am I brain dead? Also, how do newer versions of the g++ commpiler handle this? What is the most current version of the GNU compiler, anyway?? Thanks in advance, I remain a supporter of the GNU project as well as remaining sincerely, Jonathan C. Hansen University of CA, San Diego Dept. of Neurosciences jhansen@ucsd.edu
Technical Details
Message-ID:
<9311112204.AA16366@thurston.UCSD.EDU>Path:
arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!news.rhrz.uni-bonn.de!mpifr-bonn.mpg.de!uniol!math.fu-berlin.de!netmbx.de!Germany.EU.net!mcsun!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!thurston.ucsd.edu!jchShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c4bc0ee2f8e7cf84,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-12 03:47:33 PST Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!news.rhrz.uni-bonn.de!mpifr-bonn.mpg.de!uniol!math.fu-berlin.de!netmbx.de!Germany.EU.net!mcsun!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!thurston.ucsd.edu!jch From: jch@thurston.ucsd.edu (Jonathan C. Hansen) Newsgroups: gnu.gcc.help Subject: gcc version 2.1 C++ templates Date: 11 Nov 1993 17:11:45 -0500 Organization: GNUs Not Usenet Lines: 17 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9311112204.AA16366@thurston.UCSD.EDU>