delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/08/19:40:10

From: "Campbell, Rolf [SKY:1U32:EXCH]" <moscoop AT americasm01 DOT nt DOT com>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 1000308121444 DOT 6599M-100000 AT is>
NNTP-Posting-Host: wmerh0tk.ca.nortel.com
Mime-Version: 1.0
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 (\/)



- Raw text -


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