Error in my C programming
kat-free at kaqelectronics.dyndns.org
Sun Feb 20 10:13:34 PST 2005
Zera William Holladay wrote:
> On Mon, 21 Feb 2005, Kathy Quinlan wrote:
>>Here is a section of my code:
>>*** Wtrend_Drivers.c ***
>>unsigned char Length , Network , Receiver , Node , Command = 0x00;
>>These are some of the errors I get in pairs for each of the above variables:
>>Wtrend_Drivers.c:15: conflicting types for `Receiver'
>>Wtrend_Drivers.h:9: previous declaration of `Receiver'
> Try giving "Receiver" a different identifier.
No difference, I renamed to wtReceiver :(
Also, if you are trying to
> limit the scope of Length, Network, Receiver, Node and Command to
> Wtrend_Drivers.*, then give line 9 of Wtrend_Driver.h the "static"
Nope my main program can set the variables.
> Hope this helps, Zera Holladay
> p.s. Watch the parameters in your function definitions too, you may get
> them mixed-up.
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.1.0 - Release Date: 18/02/2005
More information about the freebsd-hackers