Re: why does this code generate a[n incorrect] error?
Re: why does this code generate a[n incorrect] error?
- Subject: Re: why does this code generate a[n incorrect] error?
- From: Justin Walker <email@hidden>
- Date: Wed, 16 Jun 2004 15:31:47 -0700
Just to be clear on my last msg:
On Jun 16, 2004, at 15:03, Markian Hlynka wrote:
[snip]
#define EQUALS ==
if(STOP EQUAL 1)
{
do something
}
so, yes, you're right, but unfortunately this is what i've done, and I
still don't understand the weird compiler error. Why does it point to
STOP, which is correctly declared extern, and is declared in another
file, when it should point to EQUAL?
If I wrap the above 'if' in a procedure, and compile it (command line,
"cc -c"), I get no errors (if I replace "do something" with something
:-}). FWIW, this is with 10.3.4, gcc 3.3/1640.
Regards,
Justin
Markian
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | If you're not confused,
| You're not paying attention
*--------------------------------------*-------------------------------*
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.