Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2005 03:46:21 +0800
From:      Kathy Quinlan <kat-free@kaqelectronics.dyndns.org>
To:        "Michael C. Shultz" <reso3w83@verizon.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Error in my C programming
Message-ID:  <4218E90D.2080408@kaqelectronics.dyndns.org>
In-Reply-To: <200502201112.24220.reso3w83@verizon.net>
References:  <4218B960.1050403@kaqelectronics.dyndns.org> <20050220183219.GK57256@cirb503493.alcatel.com.au> <4218DEC5.1080600@kaqelectronics.dyndns.org> <200502201112.24220.reso3w83@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael C. Shultz wrote:

> On Sunday 20 February 2005 11:02 am, Kathy Quinlan wrote:
> 
>>Peter Jeremy wrote:
>>
>>>On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote:
>>>
>>>>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'
>>>
>>>Without knowing exactly what is on those lines, it's difficult to
>>>offer any concrete suggestions.
>>>
>>>Two possible ways forward:
>>>1) Change the declaration at Wtrend_Drivers.h:9 to be 'extern'
>>>2) Pre-process the source and have a close look at the definitions
>>>and declarations for Receiver.  You may have a stray #define that
>>>is confusing the type or a missing semicolon.
>>>
>>>Peter
>>
>>Here is a section of my code:
>>
>>*** Wtrend_Drivers.c ***
>>
>>(12)void Reset_Network (unsigned char Network)
>>(13)   {
>>(14)    Length = 0x00;
>>(15)    Receiver = 0x00;
>>(16)    Node = 0xFF;
>>(17)    Command = Reset;
>>(18)    Make_Packet_Send(Head , Length, Network, Receiver, Node,
>>Command, p_Data);
>>(19)   }
>>
>>*** Wtrend_Drivers.h ***
>>
>>unsigned char Length , Network , Receiver , Node , Command = 0x00;
>>
>>The above is line 9 of the Wtrend_Drivers.h
>>The numbers in () I have added to show the line numbers in
>>Wtrend_Drivers.c
>>
>>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'
>>
>>Regards,
>>
>>Kat.
> 
> 
> How does it do when you use decimal equivalents?
>  (14)    Length = 0;
>  (15)    Receiver = 0;
>  (16)    Node = 255;
> 
> -Mike

Still the same :(

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?4218E90D.2080408>