开发者

Firebreath project with objective-c++

I need to incude some objective c code into my Firebreath project. The problem is that the project is in c++ lenguage. So I am trying with objective-c++ code. The plugin project name is "OpenOnDesktopPlugin", I renamed the "OpenOnDesktopPluginAPI.cpp" to "OpenOnDesktopPluginAPI.mm" and I created an objective-c class called "DistributedNotification" and I change the .m extension to .mm I can开发者_StackOverflow中文版´t init my objective-c class from "OpenOnDesktopPluginAPI.mm", I get some compilation errors:

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_DistributedNotification", referenced from: objc-class-ref in OpenOnDesktopPluginAPI.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status

and the other error:

Undefined symbols for architecture i386: ".objc_class_name_DistributedNotification", referenced from: pointer-to-literal-objc-class-name in OpenOnDesktopPluginAPI.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status

Anyone can help me?


The source code file with the DistributedNotification class in it is not being linked. Make sure it is in your target's list of compiled files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜