Strange error message when compiling
Strange error message when compiling
- Subject: Strange error message when compiling
- From: Marshall Clow <email@hidden>
- Date: Mon, 24 Jan 2005 11:48:04 -0800
Just FYI - don't spend time flailing like I did.
I was playing around with SimpleCarbonWeb, and I had to create an HIViewID.
So I added the following lines:
HIViewID vID;
vID.signature = 'Web!';
vID.id = 128;
FindHIViewByID ( HIViewGetRoot ( window ), vID, &view );
Much to my surprise, I got:
Error: parse error before id.
Turns out, the file
(/Developer/Examples/WebKit/SimpleCarbonWeb/WebWindow.c) had some
Objective-C glue in it, was compiled with "-xobjective-c++", and with
those settings, you
can't actually access a field named 'id' :-(
[ Even if it's in Apple's own header files ]
I'm actually surprised that it compiled in the first place (before I
made any changes).
--
-- Marshall
Marshall Clow Idio Software <mailto:email@hidden>
It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden