From: caramaith 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: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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