2009-07-14 133 views
0

我正在嘗試編譯最初爲Visual Studio 2008 SP0設計的舊項目(我現在使用SP1)。我收到這些錯誤。Visual Studio 2008生成錯誤

Error 51 error LNK2019: unresolved external symbol "unsigned long __cdecl GetDeviceState(enum DEVICES_ENUM,enum DEVICE_STATE_ENUM &,int &)" ([email protected]@[email protected]@[email protected]@[email protected]) referenced in function _Get1394DeviceStatus Raw1394api.obj raw1394api 
    Error 52 error LNK2019: unresolved external symbol "unsigned long __cdecl SetDeviceState(enum DEVICES_ENUM,enum DEVICE_STATE_ENUM,int &,int &)" ([email protected]@[email protected]@[email protected]@[email protected]) referenced in function _Set1394DeviceStatus Raw1394api.obj raw1394api 
    Error 53 error LNK2019: unresolved external symbol "bool __cdecl InstallDevice(wchar_t *)" ([email protected]@[email protected]) referenced in function _InstallDriver Raw1394api.obj raw1394api 
    Error 54 error LNK2019: unresolved external symbol "bool __cdecl UninstallDevice(void)" ([email protected]@YA_NXZ) referenced in function _UninstallDriver Raw1394api.obj raw1394api 
    Error 55 fatal error LNK1120: 4 unresolved externals f:\InfoSelect My Documents\Zurvan on Windows\raw1394 for Windows by Dmitry\test\raw1394src\Debug\raw1394api.dll raw1394api 
+4

你有問題嗎? – Eric 2009-07-14 11:12:38

+0

我認爲這很簡單,假設他的問題是:「我如何解決這些錯誤?」 – Ant 2009-07-14 11:28:09

回答

1

我會建議檢查最後一行中提到的文件。

2

也許你需要安裝最新的Windows SDK。

1

您需要在項目設置中設置DLL/LIB位置包含缺少的符號。
或者如果您的項目使用DirectX(或XNA),則應首先安​​裝DirectX SDK。