X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <425B3081.65E2BF21@yahoo.com> From: CBFalconer Organization: Ched Research http://cbfalconer.home.att.net X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: problem with saving struct to disk References: <1f2 DOT 777c338 DOT 2f8c63a9 AT cs DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 45 Date: Tue, 12 Apr 2005 02:39:55 GMT NNTP-Posting-Host: 12.76.139.165 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1113273595 12.76.139.165 (Tue, 12 Apr 2005 02:39:55 GMT) NNTP-Posting-Date: Tue, 12 Apr 2005 02:39:55 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com KTrumpetsRule AT cs DOT com wrote: > >> I'm having a problem saving a struct to disk using DJGPP. >> Normally I'd think the problem was me but in view of the fact >> that it works under SOME circumstances, I'm not sure. Here's >> the details. > ... snip ... > > Soooo, here's the kicker. I'm also using 2 other struct's. > Here's one of them: > ... snip ... > > #ifndef GLOBAL_BIKE_MAIN > extern > #endif > > struct bike_main { ... snip details ... > } bike_main_0 ; Here you have defined an object (variable) named "bike_main_0" of the type "struct bike_main". > > typedef struct bike_main BIKE_MAIN; here you defined a synonym BIKE_MAIN for the type "struct bike_main" > BIKE_MAIN bike_main_0; and here you defined another object of the same type with the same name as the previous "bike_main_0". This is a nono. Time to get your ducks lined up in some sort of a row. -- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson