开发者

NPAPI XCode linker

I'm trying to compile basic plugin for firefox and linker reports following problem:

Undefined symbols for architecture i386: "_NPN_GetValue", referenced from: _PluginLog in main.o "_NPN_GetStringIdentifier", referenced from: _PluginLog in main.o "_NPN_GetProperty", referenced from: _PluginLog in main.o "_NPN_Invoke", referenced from: _PluginLog in main.o "_NPN_ReleaseObject", referenced from: 开发者_StackOverflow _PluginLog in main.o "_NPN_ReleaseVariantValue", referenced from: _PluginLog in main.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status

have I missed to add some linked libraries?


You can't just call those functions like you would a normal function (they aren't exported by a browser, nor are you linking against a browser); you need to use the function pointers from the NPNetscapeFuncs struct passed to you by the browser.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜