vs2012 32位系统编译x64报错error LNK2019: 无法解析的外部符号
动感小麦兜 2017-04-08 03:53:34 用的VS2012,同样的程序,编译win32时一切正常,因为需要编译x64在64位系统上使用,当换成x64后就报错
>DemoCANDlg.obj : error LNK2019: 无法解析的外部符号 VCI_OpenDevice,该符号在函数 "protected: void __cdecl CDemoCANDlg::OnButtonOpenDevice(void)" (?OnButtonOpenDevice@CDemoCANDlg@@IEAAXXZ) 中被引用
1>DemoCANDlg.obj : error LNK2019: 无法解析的外部符号 VCI_CloseDevice,该符号在函数 "protected: void __cdecl CDemoCANDlg::OnButtonOpenDevice(void)" (?OnButtonOpenDevice@CDemoCANDlg@@IEAAXXZ) 中被引用
1>DemoCANDlg.obj : error LNK2019: 无法解析的外部符号 VCI_InitCAN,该符号在函数 "protected: void __cdecl CDemoCANDlg::OnButtonOpenDevice(void)" (?OnButtonOpenDevice@CDemoCANDlg@@IEAAXXZ) 中被引用
1>DemoCANDlg.obj : error LNK2019: 无法解析的外部符号 VCI_StartCAN,该符号在函数 "protected: void __cdecl CDemoCANDlg::OnButtonOpenDevice(void)" (?OnButtonOpenDevice@CDemoCANDlg@@IEAAXXZ) 中被引用
1>DemoCANDlg.obj : error LNK2019: 无法解析的外部符号 VCI_Transmit,该符号在函数 "public: void __cdecl CDemoCANDlg::OnBnClickedButtonShuaruFlag(void)" (?OnBnClickedButtonShuaruFlag@CDemoCANDlg@@QEAAXXZ) 中被引用
百度了一圈,库也包含在程序里了,#pragma comment(lib,"ControlCAN"),相应的头文件也加了,还是不行,求助大神来解答