🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #921

Re: Variable re-declared error

#921
From: Daniel T.
Date: Thu, 24 Oct 2002 11:55
18 lines
2006 bytes
In article <a926f6f0.0210232256.254d397f@posting.google.com>,
 kurt.bierbaum@t-online.de (topdancer) wrote:

>I tried to convert an old CW 7 project to CW 8.2. The compiler showed
>some error messages that a function was wrongly re-declared. In fact,
>the function prototype in the corresponding header file was different
>from the function itself, some variables were missing in the header
>file (CW 7 did not see this error!).
>
>After correcting these issues, the error messages did NOT go away,
>although the header file was correct in number and type of variables.
>
>Why? How can I resolve this?

First check that the header file you changed is actually the one that CW 
is using. One easy way to do that (if the header isn't being included in 
very many places) it to put a #pragma error in the header and see of 
that causes the compile to barf.
Technical Details
Message-ID: <a-4760B0.07560624102002@nnrp01.earthlink.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
References: <a926f6f0.0210232256.254d397f@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,3d2f73bf0dd224ae
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,3d2f73bf0dd224ae
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2002-10-24 04:56:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
From: "Daniel T." <a@b.c>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: Variable re-declared error
References: <a926f6f0.0210232256.254d397f@posting.google.com>
User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X)
Message-ID: <a-4760B0.07560624102002@nnrp01.earthlink.net>
Lines: 18
Date: Thu, 24 Oct 2002 11:55:17 GMT
NNTP-Posting-Host: 24.170.134.143
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 1035460517 24.170.134.143 (Thu, 24 Oct 2002 04:55:17 PDT)
NNTP-Posting-Date: Thu, 24 Oct 2002 04:55:17 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net