2009-07-14 132 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。