我將VC 6.0中開發的工作區更改爲VS 2008.當我嘗試構建工作區時,出現以下錯誤消息。我該如何糾正這個問題? > Configuation屬性 - - >鏈接器 - >輸入 -無法打開文件'LIBC.lib'
fatal error LNK1104: cannot open file 'LIBC.lib'
時,我忽視LIBC.LIB
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) class CIHoTSimEngine * __cdecl CreateHoTSimEngine(void)" ([email protected]@[email protected]@XZ) referenced in function "private: int __thiscall CHoTSimV2Doc::Init(void)" ([email protected]@@AAEHXZ) HoTSimV2Doc.obj HoTSimV2
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) class CIFABConnect * __cdecl CreateFabConnectServer(void)" ([email protected]@[email protected]@XZ) referenced in function "private: int __thiscall CHoTSimV2Doc::Init(void)" ([email protected]@@AAEHXZ) HoTSimV2Doc.obj HoTSimV2
Error 3 fatal error LNK1120: 2 unresolved externals D:\Projects\AsWorxSim\Bin\Release\HoTSim2.0.exe 1 HoTSimV2
當我刪除LIBC.LIB我有幾個鏈接錯誤。鏈接錯誤添加到我原來的帖子 – Maanu 2011-05-16 11:42:42
@Maanu:嘗試運行'vsvars32.bat'來設置環境並且也不要忽略Libc.lib。 – 2011-05-16 11:44:28
它仍然無法正常工作。我執行了批處理文件並重新啓動了Visual Studio – Maanu 2011-05-16 11:56:04