Re: Simple C++/Obj-C question, solved
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.