From: Dominique DOT Biesmans AT nospam DOT ping DOT be (please remove the nospam part) (Dominique Biesmans) Newsgroups: comp.os.msdos.djgpp Subject: Re: Return Types for Constructors Date: Mon, 08 Dec 1997 18:58:36 GMT Organization: EUnet Belgium, Leuven, Belgium Lines: 24 Message-ID: <348c4260.323656@news.eunet.be> References: <01bd0366$cfe6d140$d744e4cf AT cadvision DOT com> <348BA5D2 DOT 503C AT rug DOT ac DOT be> Reply-To: Dominique DOT Biesmans AT nospam DOT ping DOT be (please remove the nospam part) NNTP-Posting-Host: dialup112.leuven.eunet.be To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk >constructors always return void, so you should have written instead: absolutely NOT!!! Constructors don't have a type Please don't try to answer the question, if you're not familiar with the subject, you only confuse people. To the original poster : post your header declaration, otherwise something like this should always work : // declaration class A { // ... public: A(): // default constructor // ... } A::A() { // implementation }