Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot open file 'LIBC.lib'

I changed a workspace developed in VC 6.0 to VS 2008. When I tried to build the workspace I am getting the following error message. How can I correct the problem?

fatal error LNK1104: cannot open file 'LIBC.lib'

I am getting the following messages when I ignored libc.lib

Error   1   error LNK2019: unresolved external symbol "__declspec(dllimport) class CIHoTSimEngine * __cdecl CreateHoTSimEngine(void)" (__imp_?CreateHoTSimEngine@@YAPAVCIHoTSimEngine@@XZ) referenced in function "private: int __thiscall CHoTSimV2Doc::Init(void)" (?Init@CHoTSimV2Doc@@AAEHXZ)   HoTSimV2Doc.obj HoTSimV2
Error   2   error LNK2019: unresolved external symbol "__declspec(dllimport) class CIFABConnect * __cdecl CreateFabConnectServer(void)" (__imp_?CreateFabConnectServer@@YAPAVCIFABConnect@@XZ) referenced in function "private: int __thiscall CHoTSimV2Doc::Init(void)" (?Init@CHoTSimV2Doc@@AAEHXZ)   HoTSimV2Doc.obj HoTSimV2
Error   3   fatal error LNK1120: 2 unresolved externals D:\Projects\AsWorxSim\Bin\Release\HoTSim2.0.exe 1   HoTSimV2
like image 219
Maanu Avatar asked May 16 '11 11:05

Maanu


1 Answers

Project Property -> Configuation Properties -> Linker -> Input -> Ignore Specific Library

Ignore the LIBC.LIB

Edit: I think once you remove the LIBC.lib as mentioned above, you are moving ahead with your linking and getting errors which exist in your app. You should try to look in these errors now. Think about it, if libc.lib was missing in the first place then how could it provide any linkage which seems to have appeared after you ignored it.

like image 171
Alok Save Avatar answered Oct 12 '22 22:10

Alok Save