【发布时间】:2013-01-17 16:58:31
【问题描述】:
我在尝试编译 firefox 协议处理程序的示例实现时收到以下错误。我在 Windows Vista 上使用 Gecko SDK 3.6、Visual Studio 2010。我认为该示例非常旧,并且不是使用 SDK 3.6 版构建的。
1>nsKeywordModule.obj:错误 LNK2019:无法解析的外部符号“__declspec(dllimport) unsigned int __cdecl NS_NewGenericModule2(struct nsModuleInfo const *,class nsIModule * *)”(_imp?NS_NewGenericModule2@@ YAIPBUnsModuleInfo@@PAPAVnsIModule@@@Z) 在函数_NSGetModule中引用
1>nsKeywordProtocolHandler.obj:错误 LNK2019:无法解析的外部符号“__declspec(dllimport) public: __thiscall nsFixedCString::nsFixedCString(char *,unsigned int,unsigned int)”(_imp?? 0nsFixedCString@@QAE@PADII@Z) 在函数“public: __thiscall nsCAutoString::nsCAutoString(void)”中引用 (??0nsCAutoString@@QAE@XZ)
1>nsKeywordProtocolHandler.obj : 错误 LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static char * nsCharTraits::sEmptyBuffer" (_imp?sEmptyBuffer@?$nsCharTraits@D@@ 2PADA)
1>nsKeywordProtocolHandler.obj:错误 LNK2019:无法解析的外部符号“__declspec(dllimport) public: __thiscall nsACString_internal::nsACString_internal(char *,unsigned int,unsigned int)”(_imp?? 0nsACString_internal@@QAE@PADII@Z) 在函数“protected: __thiscall nsCString::nsCString(char *,unsigned int,unsigned int)”中引用 (??0nsCString@@IAE@PADII@Z)
【问题讨论】:
标签: firefox firefox-addon protocol-handler geckosdk