Re: Garbage Collection Errors when Creating System Prefs Pane
Re: Garbage Collection Errors when Creating System Prefs Pane
- Subject: Re: Garbage Collection Errors when Creating System Prefs Pane
- From: Robert Monaghan <email@hidden>
- Date: Wed, 05 Oct 2016 09:18:14 -0700
- Dkim-filter: OpenDKIM Filter v2.9.2 mail.gluetools.com 17AB06260175
Hi Jens,
Here is the error output from Xcode, after renaming the NSPreferencePane subclass to “.mm” Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_NSPreferencePane", referenced from: _OBJC_CLASS_$_TestPane in TestPane.o "_OBJC_METACLASS_$_NSPreferencePane", referenced from: _OBJC_METACLASS_$_TestPane in TestPane.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
bob. On Oct 3, 2016, at 10:14 AM, Jens Alfke < email@hidden> wrote:
On Oct 2, 2016, at 4:47 PM, Robert Monaghan < email@hidden> wrote:
However, Apple didn’t mention anything about C++ in an NSPreferencePane object. After some experimenting, I discovered that if I created a new wrapper class for my C++ code, I could compile a plugin. It appears that changing your NSPreferencePane subclass from a Obj-C object to an Obj-C++ object will break Xcode.
That’s pretty bizarre; switching to Obj-C++ shouldn’t make a difference. What exactly are the link errors you got when using a .mm file?
—Jens
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden