delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/04/10:15:00

From: roland DOT nilsson AT communique DOT se (Roland Nilsson)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: List of error messages with explanation
Date: 3 May 1997 23:04:06 GMT
Organization: -
Lines: 25
Message-ID: <5kgg96$9bm$1@news.luth.se>
References: <def_9704300120 AT exonet DOT nl>
NNTP-Posting-Host: x61.communique.se
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <def_9704300120 AT exonet DOT nl>, dennis AT qltel DOT exonet DOT nl says...
>
>Where can I find a list of error-message generated by the compiler and
>there explaination? And the possible sollutions?
>
>In particular I'm looking for the reason thats causing a "return type
>specification for constructor invalid" in a very simple class.
>
>   Dennis!

You have tried to specify a return type for a constructor, which
is illegal (not even type void is permitted):

class Foo {
  Foo(int bar);       // correct
  void Foo(int bar);  // illegal, there can be no return type.
};

----------------------------------------------------------- - -  -
               Roland Nilsson, Pitea, SWEDEN
           --/         member of the       \--
          --(  Avante OS Development Group  )--
           --\     (project coordinator)   /--
      Visit us at  >> http://mediaport.org/~wierdo <<

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019