• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: why does this code generate a[n incorrect] error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >why does this code generate a[n incorrect] error? (From: Markian Hlynka <email@hidden>)
 >Re: why does this code generate a[n incorrect] error? (From: Markian Hlynka <email@hidden>)

  • Prev by Date: Re: why does this code generate a[n incorrect] error?
  • Next by Date: Re: why does this code generate a[n incorrect] error?
  • Previous by thread: Re: why does this code generate a[n incorrect] error?
  • Next by thread: PPC970FX "Event MUX" button in MONster
  • Index(es):
    • Date
    • Thread