Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2005 02:13:25 +0800
From:      Kathy Quinlan <kat-free@kaqelectronics.dyndns.org>
To:        Zera William Holladay <zholla1@uic.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Error in my C programming
Message-ID:  <4218D345.30004@kaqelectronics.dyndns.org>
In-Reply-To: <Pine.GSO.4.58.0502201128240.11994@icarus.cc.uic.edu>
References:  <4218B960.1050403@kaqelectronics.dyndns.org> <Pine.GSO.4.58.0502201128240.11994@icarus.cc.uic.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Zera William Holladay wrote:

> 
> On Mon, 21 Feb 2005, Kathy Quinlan wrote:
> 
> 
>>Hi Guys,
>>
>>Here is a section of my code:
>>
>>*** Wtrend_Drivers.c ***
>>unsigned char Length , Network , Receiver , Node , Command = 0x00;
>>//Some Variables
>>
>>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"
> qualifier.

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.
???

Regards,

Kat.


-- 
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4218D345.30004>