Visual StudioのWindowsでlibConfig
ライブラリを使用してコードをコンパイルしようとしています。Visual Studio 2010のlibconfig-unresolved external
これはコードです:
#include "libconfig.hh"
using namespace libconfig;
int main(int argc, char * argv[])
{
Config cfg;
return 0;
}
私はhereからライブラリをダウンロードしました。追加のインクルードディレクトリでは、すべてのソースとヘッダーを含むフォルダを追加しました。
私はそのコードの取得エラーです:
1>LibConfigTest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall libconfig::Config::~Config(void)" ([email protected]@@[email protected]) referenced in function _main
1>LibConfigTest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall libconfig::Config::Config(void)" ([email protected]@@[email protected]) referenced in function _main
1>c:\users\***\visual studio 2010\Projects\LibConfigTest\Debug\LibConfigTest.exe : fatal error LNK1120: 2 unresolved externals
私はまた、サンプルコードをコンパイルし、それが成功したので、私はプロパティを見て、追加のインクルードファイルと私にそれを比較し、それは同じでした。
コード間に他の違いはありません。
私は何が不足しているのか分かりませんし、そのことに関するいくつかの指導には満足しています。