Linker DwfToolkit链接

Linker DwfToolkit链接,linker,static-linking,Linker,Static Linking,我想在我的应用程序中使用DwfToolkit,但我无法链接它 守则: // DWF Core headers #include "dwfcore/String.h" #include "dwfcore/Core.h" #include "dwfcore/SkipList.h" #include "dwfcore/InputStream.h" using namespace DWFCore; // WHIP! headers #include "whiptk/whip_toolkit.h"

我想在我的应用程序中使用DwfToolkit,但我无法链接它

守则:

// DWF Core headers
#include "dwfcore/String.h" 
#include "dwfcore/Core.h"
#include "dwfcore/SkipList.h"
#include "dwfcore/InputStream.h"

using namespace DWFCore;

// WHIP! headers
#include "whiptk/whip_toolkit.h"

// DWF Toolkit headers
#include "dwf/Version.h"
#include "dwf/Toolkit.h"
#include "dwf/package/Manifest.h"
#include "dwf/package/EPlotSection.h"
#include "dwf/package/EModelSection.h"
using namespace DWFToolkit;

int _tmain(int argc, _TCHAR* argv[])
{

    DWFString path("c:\\test.dwf");
    DWFFile file(path);
    DWFPackageReader reader( file );

    return 0;
}
在链接器选项(附加依赖项)中,我添加了dwfcore.1.7.0.lib、dwftk_ro.7.7.0.lib和whiptk_ro.7.13.601.lib。编译后:

Error   902 error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall DWFCore::DWFString::DWFString(wchar_t const *)"
(__imp_??0DWFString@DWFCore@@QAE@PB_W@Z) referenced in function _wmain

当我擦除行
DWFPackageReader读取器(文件)时从代码中生成程序。

如果要链接静态库,请在预处理器中添加dwfcore\u static