我使用灰點的FlyCapture庫一些簡單的代碼:flycaputer2鏈接錯誤
#include <iostream>
#include "FlyCapture2.h"
using namespace std;
int main(){
cout << "Hello World!";
FlyCapture2::BusManager m;
return 0;
}
上面的代碼提供了在編譯時這些鏈接錯誤:
1>------ Build started: Project: CJMVideo, Configuration: Release Win32 ------
1>Compiling...
1>CJMVideo.cpp
1>Linking...
1>CJMVideo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall FlyCapture2::BusManager::~BusManager(void)" ([email protected]@@[email protected])
1>CJMVideo.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall FlyCapture2::BusManager::BusManager(void)" ([email protected]@@[email protected])
1>C:\Users\Akihiro\Documents\Visual Studio 2008\Projects\CJMVideo\Release\CJMVideo.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Users\Akihiro\Documents\Visual Studio 2008\Projects\CJMVideo\CJMVideo\Release\BuildLog.htm"
1>CJMVideo - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我已經加入FlyCapture的目錄庫目錄在VS2008的選項中,並且我在項目設置下添加了這些庫作爲附加依賴項。
我的下一步調試是什麼?我很茫然。
感謝,
嗨,你可以請擴大一點 - 什麼庫需要特別添加?我有這個問題,一直無法克服它。 – AndyUK 2012-06-09 10:49:31