• 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: Obj-C++ Example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Obj-C++ Example (From: Stuart Bryson <email@hidden>)

  • Prev by Date: Re: AppleDouble format
  • Next by Date: Where does umask come from?
  • Previous by thread: Obj-C++ Example
  • Next by thread: Where does umask come from?
  • Index(es):
    • Date
    • Thread