Mail Archives: djgpp/1996/09/11/13:30:25
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
- Raw text -