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

Re: C question


  • Subject: Re: C question
  • From: email@hidden
  • Date: Sat, 15 Jun 2002 18:22:45 -0500

There was a similar thread very recently. I've pasted it below. Hope this helps.



On Friday, June 14, 2002, at 07:53 AM, Nicola Vitacolonna wrote:

I don't think that C++ header files can be imported. I think you need
to use
include. Also, you may need to change the extension to .M

The #import directive seems to work fine to me also with C++ header
files. As to Apple's Release Notes, the .M extension is the old one,
while .mm is the current one.

Anyway, I found the solution to my problem by looking at the site you
suggested to me
(the correct url is:
http://developer.apple.com/techpubs/macosx/DeveloperTools/Compiler/CompilerTOC.
html).

I have added the -ObjC++ flag in the Build Settings of the project.
Everything now works fine.

Thank you,
Nicola

I found some information on Apple's website that may help:

http://developer.apple.com/techpubs/macosx/DeveloperTools/Compiler/Compiler.
4.html

Hope that helps,
--Chris Szewczyk


** ** Get my PGP public key at:
** * ** * www.dimi.uniud.it/~vitacolo
** * ** * or finger email@hidden
** * Universita' degli Studi di Udine
* ***icola Vitacolonna
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: Objective-C++: compiling C++ class in a Cocoa app (From: Nicola Vitacolonna <email@hidden>)

  • Prev by Date: Re: Protecting Software w/ Software License Keys...
  • Next by Date: Re: Protecting Software w/ Software License Keys...
  • Previous by thread: Re: Objective-C++: compiling C++ class in a Cocoa app
  • Next by thread: NSPortTimeOutException Issue
  • Index(es):
    • Date
    • Thread