Re: Obj-C++ Example
Re: Obj-C++ Example
- Subject: Re: Obj-C++ Example
- From: Gareth White <email@hidden>
- Date: Fri, 9 Nov 2001 15:50:28 +0800
At 2:18 PM +1100 9/11/2001, Stuart Bryson wrote:
>
I have read the docs...
>
>
/Developer/Documentation/ReleaseNotes/Objective-C++.html
>
>
but even when I copy and paste their example into PB, it doesn't
>
compile. The same occurs when I try my own code. In the example (given
>
below), the error I keep getting is:
>
>
HelloWorld.mm:6: parse error before character 0312
When you copy and paste text from HTML documents or PDFs, you can often end
up with weird characters in your code.
In this case, it looks like their example uses curly quotes instead of
straight quotes in this line:
void sayHi() { printf("Hi"); }
It should compile if you fix that.
Hope that helps,
Gareth