I'm trying to compile an old project that was originally designed for Visual Studio 2008 SP0 (I'm using SP1 now). I'm getting these errors.
Error 51 error LNK2019: unresolved external symbol "unsigned long __cdecl GetDeviceState(enum DEVICES_ENUM,enum DEVICE_STATE_ENUM &,int &)" (?GetDeviceState@@YAKW4DEVICES_ENUM@@AAW4DEVICE_STATE_ENUM@@AAH@Z) 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 &)" (?SetDeviceState@@YAKW4DEVICES_ENUM@@W4DEVICE_STATE_ENUM@@AAH2@Z) referenced in function _Set1394DeviceStatus Raw1394api.obj raw1394api
Error 53 error LNK2019: unresolved external symbol "bool __cdecl InstallDevice(wchar_t *)" (?InstallDevice@@YA_NPA_W@Z) referenced in function _InstallDriver Raw1394api.obj raw1394api
Error 54 error LNK2019: unresolved external symbol "bool __cdecl UninstallDevice(void)" (?UninstallDevice@@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
也许您需要安装最新的Windows SDK。
我建议检查最后一行中提到的文件。
You need to set DLL/LIB location contains missing symbols in project setting.
Or if your project uses DirectX (or XNA), you should install DirectX SDK first.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.