delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/08/13:47:23

From: caramaith <caramaith AT myokay DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I don't understand the compiler...(semi-newbie)
Date: Wed, 08 Mar 2000 18:44:30 +0100
Organization: T-Online
Lines: 44
Message-ID: <38C6917D.1F9DAEC9@myokay.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000308121444 DOT 6599M-100000 AT is>
Mime-Version: 1.0
X-Trace: news01.btx.dtag.de 952537609 5607 320054133135-0001 000308 17:46:49
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


Eli Zaretskii schrieb:
> 
> On Tue, 7 Mar 2000, caramaith wrote:
> 
> > first and furthermore big thx fly out to Jason, Eli, Damian and Robin
> > for helping me out understanding the compiling and linking process. I
> > could well read the hundreds of pages with command-line options, but
> > this newsgroup is there for giving quick help... thx again!!!
> 
> You are welcome.  But please make a good-faith effort to look up the
> relevant subjects in the available docs *before* you post the
> questions here.  We are not supposed to read the docs for you, only to
> augment and explain what's not documented or not clear.
> 
> Given the helpful mindset of people on this forum, it is very easy to
> misuse or abuse it.  Please don't fall for this bait.
> 
> > 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;

nah, this doesn't work... compiler complains about insufficient type
definition. but to create an object of type Stack it seems illogical to
me to first declare this a struct again... anyway I tried and it doesn't
work. and - yes this is a c++ snippet of code, I encapsulated the
functions within the struct.

thx anyway... 

cara

- Raw text -


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