www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/05/07:38:38

From: caramaith <caramaith AT myokay DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: odd compiler error in DJGPP...
Date: Sun, 05 Mar 2000 12:05:45 +0100
Organization: T-Online
Lines: 38
Message-ID: <38C23F89.30EEA244@myokay.net>
References: <38C17CB3 DOT BCC06203 AT myokay DOT net> <38C1E0F6 DOT 44FD7B8D AT home DOT com>
Mime-Version: 1.0
X-Trace: news00.btx.dtag.de 952254475 19811 320054133135-0001 000305 11:07:55
X-Complaints-To: abuse AT t-online DOT de
X-Sender: 320054133135-0001 AT t-dialin DOT net
X-Mailer: Mozilla 4.7 [de] (Win98; I)
X-Accept-Language: de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

do you need to include a constructor in a struct ??? I know this for
classes, but Eckel doesnt include one and he should know, shouldnt he?
or perhaps I got this wrong....


Robin Johnson schrieb:
> 
> did u remember to include the constructor in the structure?
> 
> caramaith wrote:
> >
> > ...whatever I do, the compiler will flag an error of the following
> > strucure:
> >
> > testfil.cpp(2) Error: undefined reference to 'Stash::initialize(int)'
> > ...
> > ...
> >
> > this goes for every called function/method in the testfile that
> > naturally includes its header. first I had it with a code I did on my
> > own and i thought, well - you could've made a mistake. so I took some
> > code from Bruce Eckels "thinking in c++" and compiling runs errorfree.
> > but also here the compiler won't recognize the methods... and I wonder
> > what lill option in DJGPP can make it vanish, because the code is 100%
> > correct.
> >
> > pls help.
> >
> > thx caramaith
> 
> --
> Robin Hugh Johnson
> "Robbat2"
> QTOD: "I used to be an idealist, but I got mugged by reality."
> E-Mail     : robbat2 AT t-p-l DOT com
> ICQ#       : 30269588 or 41961639
> Home Page  : http://tesla.t-p-l.com
> Time Zone  : Pacific Daylight (GMT - 8)

- Raw text -


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