Message-ID: <38C1E0F6.44FD7B8D@home.com> From: Robin Johnson Organization: Orbit Computers X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en,af,es MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: odd compiler error in DJGPP... References: <38C17CB3 DOT BCC06203 AT myokay DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 31 Date: Sun, 05 Mar 2000 04:22:12 GMT NNTP-Posting-Host: 24.113.36.103 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.bc.home.com 952230132 24.113.36.103 (Sat, 04 Mar 2000 20:22:12 PST) NNTP-Posting-Date: Sat, 04 Mar 2000 20:22:12 PST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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)