Mail Archives: djgpp/2000/03/05/07:38:38
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 -