开发者

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


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.


Command line option:

cl source.cpp /link /NODEFAULTLIB:LIBC.LIB


look here: Discussion about libc on microsoft forum that's for vs2005 but for 2008 it is the same...


You need to "Rebuild All", to make sure you don't have any .obj files from VC6 hanging around.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜