Re: Error in my C programming

2005-02-22 Thread Dag-Erling Smørgrav
Giorgos Keramidas <[EMAIL PROTECTED]> writes: > The quotations seem a bit messed up, so I don't know if Peter Jeremy or > Kathy Quinlan wrote the above paragraph. Whoever the author was though, > it may be worth to note that C99 *does* allow single-line comments > delimited by //. which leads to

Re: Error in my C programming

2005-02-22 Thread Giorgos Keramidas
On 2005-02-21 19:42, Kathy Quinlan <[EMAIL PROTECTED]> wrote: > Peter Jeremy wrote: > > OK it was all to do with the comments it did not like the //comments > ARRGG the rest of the errors were bogus as soon as I changed EVERY > comment over to the ANSI C /*comments*/ it now works (oh and remove

Re: Error in my C programming

2005-02-21 Thread ALeine
[EMAIL PROTECTED] wrote: > If anyone can recomend online resources for Makefiles I would > apreciate it :) How about a source which is already on your disk? :-) zcat /usr/share/doc/psd/12.make/paper.ascii.gz | less You may also want to study the first chapter of the FreeBSD System Programming

Re: Error in my C programming

2005-02-21 Thread Kathy Quinlan
Peter Jeremy wrote: OK it was all to do with the comments it did not like the //comments ARRGG the rest of the errors were bogus as soon as I changed EVERY comment over to the ANSI C /*comments*/ it now works (oh and removed the #pragma directives from a c compiler for the AVR uC I will have

Re: Error in my C programming

2005-02-20 Thread Peter Jeremy
On Mon, 2005-Feb-21 03:02:29 +0800, Kathy Quinlan wrote: >Peter Jeremy wrote: >>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. ... >(14)Length = 0x00; >(

Re: Error in my C programming

2005-02-20 Thread Richard Sharpe
On Sun, 20 Feb 2005, Michael C. Shultz wrote: > > > > >> *** Wtrend_Drivers.c *** > > > > >> > > > > >> (12)void Reset_Network (unsigned char Network) > > > > >> (13) { > > > > >> (14)Length = 0x00; > > > > >> (15)Receiver = 0x00; > > > > >> (16)Node = 0xFF; > > > > >> (17)Comman

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 12:41 pm, Richard Sharpe wrote: > On Sun, 20 Feb 2005, Michael C. Shultz wrote: > > > >> Here is a section of my code: > > > >> > > > >> *** Wtrend_Drivers.c *** > > > >> > > > >> (12)void Reset_Network (unsigned char Network) > > > >> (13) { > > > >> (14)Length = 0

Re: Error in my C programming

2005-02-20 Thread Lucas Holt
On Feb 20, 2005, at 3:41 PM, Richard Sharpe wrote: On Sun, 20 Feb 2005, Michael C. Shultz wrote: 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 = Rese

Re: Error in my C programming

2005-02-20 Thread Richard Sharpe
On Sun, 20 Feb 2005, Michael C. Shultz wrote: > > >> 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; > > >> (1

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
On Sunday 20 February 2005 11:48 am, Kathy Quinlan wrote: > Gary Corcoran wrote: > > 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: > >

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
Gary Corcoran wrote: 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 `Re

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
Richard Sharpe wrote: On Mon, 21 Feb 2005, 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: prev

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
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_D

Re: Error in my C programming

2005-02-20 Thread Gary Corcoran
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 know

Re: Error in my C programming

2005-02-20 Thread Richard Sharpe
On Mon, 21 Feb 2005, 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:

Re: Error in my C programming

2005-02-20 Thread Michael C. Shultz
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' > >>Wtren

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
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

Re: Error in my C programming

2005-02-20 Thread Peter Jeremy
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

Re: Error in my C programming

2005-02-20 Thread Kathy Quinlan
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: Wt

Re: Error in my C programming

2005-02-20 Thread Zera William Holladay
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_