开发者

NPAPI XCode linker

开发者 https://www.devze.com 2023-03-19 13:44 出处:网络
I\'m trying to compile basic plugin for firefox and linker reports following problem: Undefined symbols for architecture i386:

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

精彩评论

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