Xref: news2.mv.net comp.os.msdos.djgpp:8507 From: aron AT wallaker DOT torolab DOT ibm DOT com (Aron Wallaker) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with #define's under DJGPP Date: 10 Sep 1996 13:25:36 GMT Organization: IBM Microelectronics Division Lines: 21 Message-ID: <513q8g$r3e@tornews.torolab.ibm.com> References: <511bnh$nne AT tornews DOT torolab DOT ibm DOT com> Reply-To: wallaker AT vnet DOT ibm DOT com NNTP-Posting-Host: wallaker.torolab.ibm.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Aron Wallaker wrote: > I'm having a problem trying to use #define's in a header file to define > constants for use in my C code. Here's an example: OK, I'm sorry - it was my bug and I didn't see it. The problem was, as one e-mailer suggested, that I had a semicolon in my #define statement, so any line of code with the constant as the last element would compile fine, but any code with the constant in the middle of the line would produce an error. Somehow I managed to look at the code for a day without noticing the ';' - a sure sign of sleep deprivation. :-) Thanks to everyone who posted/e-mailed me; especially those that came within *hours* of my append. I don't get that kind of support on the compilers I pay for. :-) -Aron -- Aron Wallaker IBM Microelectronics Development Lab wallaker AT vnet DOT ibm DOT com Toronto, Ontario These are my opinions-IBM has its own