• 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: Simple C++/Obj-C question, solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple C++/Obj-C question, solved


  • Subject: Re: Simple C++/Obj-C question, solved
  • From: Daniel Aarno <email@hidden>
  • Date: Tue, 27 May 2003 10:34:52 +0200

Yes, this was the way to go! After the "make clean" step PB builds the mising .pfe file before compiling and all works well.

Thnx, Bishop

Tuesdayen den 27 May 2003 kl 03.57 skrev Todd Heberlein:

(1) In Project Builder change all objective C files that include the C++ header files to a .mm file (an objc++ file). This may include a objective C file that include a header file that in turn includes a C++ header (i.e., watch out for cascading include files).

(2) After the changes, do a make clean (click the broom) before trying to recompile.

(3) If your objective C class uses a C++ data structure, make sure the object is a pointer and then allocate the C++ object in the appropriate init method. For example:
--
"We live in a primitive time... neither savage nor vise... Any rational sociaty would either kill me or put me to some use." - Red Dragon
_______________________________________________
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: Simple C++/Obj-C question (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Load View from .nib in Bundle.
  • Next by Date: Re: NSTextView/NSMutableArray problem!
  • Previous by thread: Re: Simple C++/Obj-C question
  • Next by thread: BLAS Help
  • Index(es):
    • Date
    • Thread