From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp & templates Date: Thu, 15 May 1997 10:10:26 -0700 Organization: Alcyone Systems Lines: 22 Message-ID: <337B4382.570A5863@alcyone.com> References: <5ldh84$dr6 AT isis DOT fiu DOT edu> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk daniel k rathjens wrote: > you need to specify a type that the function is going to return. > template > void myclass::myclass(T tinf) > ^^^^ > like that Not specifying a return type is perfectly standard C and C++ -- it defaults to a return type of int. Without more information, such as what the compiler errors were (which may well have been in the original message; it hasn't shown up here yet) it's a little hard to help further. -- Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "The future / is right there." / Bill Moyers rum for this question would have been comp.lang.c, as this (as you had already known) is purely a C question and is not specific to DJGPP. -- Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "The future / is right there." / Bill Moyers