Re: IB framework not compatible with Obj-C++ ?
Re: IB framework not compatible with Obj-C++ ?
- Subject: Re: IB framework not compatible with Obj-C++ ?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 16 Jun 2003 16:25:40 +0200
At 20:43 Uhr +0200 15.06.2003, Karin Kosina wrote:
The problem is that when compiling obj-c++, "and" seems to get
replaced by "&&" in the source code. Therefore, the
- (void)displayConnectionBetween:(id)source and:(id)destination;
in [*] results in
"parse error before `&&' token"
and the build fails. (If I use an Obj-C class instead of Obj-C++
in the palette, everything works.)
Have you tried
#ifdef and
#undef and
#endif
?
It isn't very pretty, but it may be a workaround, as it looks like
they simply hard-wired a macro into the C++ compiler that replaces
"and" with "&&".
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.