delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/29/16:35:31

From: The NiBBLeR <bws AT degas DOT telebyte DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: linking problems with djgpp C++
Date: Thu, 29 May 1997 18:49:07 +0200
Organization: Brainwave Software
Lines: 34
Message-ID: <338DB382.6ECE@pop.telebyte.nl>
Reply-To: bws AT telebyte DOT nl
NNTP-Posting-Host: pm0-06.udn.telebyte.nl
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

Here's the source:
---------------------------------------------
  class Name
     {
       private:
          int x;
       public:
          void test(int c); 
     };

  void Name::test(int c)
     {
     }

  void main (void)
     {
     }

---------------------------------------------
Compiling this, isn't any problem.
When linking it, it gives the error something like:
  -name::test(int c) defined on another place,

can anyone please explain me, why this happens and to solve this ???? 


Thank you in advance,

   Rick Blommers <bws AT telebyte DOT nl>


btw. when replying, please send it also to my email address....

- Raw text -


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