使用jsoncpp dll构建另一个dll项目:链接时间问题

时间:2014-02-20 17:56:50

标签: c++ dll linker jsoncpp

我正在使用json-cpp lib在Visual Studio 2008中构建另一个dll项目。

链接器设置: 输出文件是一个dll

输入选项卡:我在其他依赖项中添加了json cpp lib

general tab manifest tab system tab optimization tab Advanced tab 我得到以下未解决的符号 还尝试将JSON_DLL定义为JSON_API,但它没有用。 如果有解决此问题的方法吗?

.. error LNK2001: unresolved external symbol "protected: bool cdecl Json::ValueIteratorBase::isEqual(class Json::ValueIteratorBase const &)const " (?isEqual@ValueIteratorBase@Json@@IEBA_NAEBV12@@Z)
.. error LNK2001: unresolved external symbol "protected: void cdecl Json::ValueIteratorBase::increment(void)" (?increment@ValueIteratorBase@Json@@IEAAXXZ)
.. error LNK2001: unresolved external symbol "protected: class Json::Value & cdecl Json::ValueIteratorBase::deref(void)const " (?deref@ValueIteratorBase@Json@@IEBAAEAVValue@2@XZ)
.. error LNK2001: unresolved external symbol "public: cdecl Json::ValueIterator::ValueIterator(class Json::ValueIterator const &)" (??0ValueIterator@Json@@QEAA@AEBV01@@Z)
.. error LNK2001: unresolved external symbol "public: virtual class _STL::basic_string,class _STL::allocator > cdecl Json::FastWriter::write(class Json::Value const &)" (?write@FastWriter@Json@@UEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@_STL@@@_STL@@AEBVValue@2@@Z)
.. error LNK2001: unresolved external symbol "public: class _STL::basic_string,class _STL::allocator > cdecl Json::Value::asString(void)const " (?asString@Value@Json@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@_STL@@@_STL@@XZ)
.. error LNK2001: unresolved external symbol "public: class Json::Value cdecl Json::ValueIteratorBase::key(void)const " (?key@ValueIteratorBase@Json@@QEBA?AVValue@2@XZ)
.. error LNK2001: unresolved external symbol "public: class Json::Value & cdecl Json::Value::operator" (??AValue@Json@@QEAAAEAV01@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@_STL@@@_STL@@@Z)
.. error LNK2001: unresolved external symbol "public: class Json::Value & cdecl Json::Value::operator" (??AValue@Json@@QEAAAEAV01@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@_STL@@@_STL@@@Z)
.. error LNK2001: unresolved external symbol "public: bool cdecl Json::Reader::parse(class _STL::basic_string,class _STL::allocator > const &,class Json::Value &,bool)" (?parse@Reader@Json@@QEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@_STL@@@_STL@@AEAVValue@2@_N@Z)

0 个答案:

没有答案
相关问题