From: "Campbell, Rolf [SKY:1U32:EXCH]" Newsgroups: comp.os.msdos.djgpp Subject: Re: I don't understand the compiler...(semi-newbie) Date: Wed, 08 Mar 2000 11:28:04 -0500 Organization: Nortel Networks Lines: 26 Message-ID: <38C67F94.B740BAF6@americasm01.nt.com> References: NNTP-Posting-Host: wmerh0tk.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.72 [en] (X11; I; HP-UX B.10.20 9000/785) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > videostack.cpp:10: 'Stack' undeclared(first use this function) > > videostack.cpp:10: parse error before ';' > > videostack.cpp:11: 'videoStack' undeclared(first use this function) > [snip] > > int main() > > { > > Stack videoStack; | line 10 > > videoStack.initialize(); | line 11 > [snip] > > struct Stack { > > struct Link { > > Line 10 should have been this: > > struct Stack videoStack; That's only true if it is in "C", but his filename ends in ".cpp" so I suspect it is C++ code. -- (\/) Rolf Campbell (\/)