'libc.lib' usually comes with VC++ and should be located in your 'Lib' directory, check your Visual Studio installation directory.
There is no libc.lib. I have VS 2008.
Main Topics
Browse All TopicsHi guys,
I am trying to add a new library to my project and I have this error
fatal error LNK1104: cannot open file 'LIBC.lib...
I tried to find thie library..but I only found this file in matlab, and ssdk for smart devices.So what should I do?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I think you can try to ignore this library:
Project -> Properties -> Configuration Properties -> Linker -> Input Ignore Specific Library: libc.lib
New library - does it mean that library was created in VS 2003?
If yes, please check these links:
http://social.msdn.microso
http://
Linker Settings
Adiitional library directories
C:\Documents and Settings\ogvalent\Desktop\
C:\Program Files\matlab704\bin\win32
C:\Program Files\matlab704\extern\lib
C:\Documents and Settings\ogvalent\Desktop\
Output file
.\Debug/I90Controller.exe.
Have you tried to add this libc to the ignore libraries list?
I did it and now it is ok.
Maybe the new library you're adding is compiled using the static CRT. In that case you'll have to change your linker settings to that also, or you'll get linker errors.
It is compiled with multi threadeddebug ; so it is not Multithreaded Debug DLL.
Now I have a linker error
Torch3.lib(general.obj) : error LNK2019: unresolved external symbol __iob referenced in function "void __cdecl Torch::error(char const *,...)" (?error@Torch@@YAXPBDZZ)
1>.\Debug/I90Controller.exe
You already have it:
http://www.experts-exch
i
You already have it:
http://www.experts-exchang
it was exactly about the touch
Yes..but nobody answered me on that question so that is why I opened another one. I did what they told me to do in that question and nothing changed...I still have the error.
I think this is the source code:
http://en.pudn.com/do
I think this is the source code:
http://en.pudn.com/downloa
I have it already sorry about that. I already build the RL toolbox library.
OK, this is a wild idea, but what happens if you add the following to your code?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
#include <stdio.h>
char _bufin[_INTERNAL_BUFSIZ];
/*
* FILE descriptors; preset for stdin/out/err (note that the __tmpnum field
* is not initialized)
*/
FILE _iob[_IOB_ENTRIES] = {
/* _ptr, _cnt, _base, _flag, _file, _charbuf, _bufsiz */
/* stdin (_iob[0]) */
{ _bufin, 0, _bufin, _IOREAD | _IOYOURBUF, 0, 0, _INTERNAL_BUFSIZ },
/* stdout (_iob[1]) */
{ NULL, 0, NULL, _IOWRT, 1, 0, 0 },
/* stderr (_iob[3]) */
I did it but I have error
rror C2065: '_INTERNAL_BUFSIZ' : undeclared identifier
1>c:\documents and settings\ogvalent\desktop\
1>c:\documents and settings\ogvalent\desktop\
1>Build log was saved at "file://c:\Documents and Settings\ogvalent\Desktop\
Please stop. Please remove all changes you did in the code and remove libc from the ignore library list.
Probably you have VS 2008 Express Edition.
I think, you just need to install this SDK:
http://msdn.microsoft.
Have you tried to add libcmt.lib to the dependecies? I mean "Additional Libraries" in the project settings.
I did and have these errors
1>msvcrtd.lib(MSVCR90D.dll)
1>msvcrtd.lib(MSVCR90D.dll)
1>msvcrtd.lib(MSVCR90D.dll)
1>msvcrtd.lib(MSVCR90D.dll)
1>msvcrtd.lib(MSVCR90D.dll)
1>msvcrtd.lib(MSVCR90D.dll)
1>msvcrtd.lib(MSVCR90D.dll)
1>msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class
1>msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class
1>msvcrtd.lib(MSVCR90D.dll)
1>libcmt.lib(_file.obj) : error LNK2005: ___iob_func already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmt.lib(fflush.obj) : error LNK2005: _fflush already defined in msvcrtd.lib(MSVCR90D.dll)
1>LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>.\Debug/I90Controller.exe
1>Build log was saved at "file://c:\Documents and Settings\ogvalent\Desktop\
1>I90Controller - 13 error(s), 1 warning(s)
So try to ignore msvcrtd library - this is the debug version of the C Run-Time library. Next - ignore libcmt.
now I have 1403 errors.
Torch3.lib(DiskXFile.obj)e
similar to this one
I think it is easier to find a fixed version of this RX Toolbox library or install VS 6 or 2003 then to fix all errors you have.
I have only this version..so i do not know where I can find another one. I have to work with VS 2008, because I have my whole project that is working only with VS 2008.
Can you go back and recover a situation with 1-2 compilation errors?
Yes, Idid that and now I have ignored the libc.lib. And I have this error
1>Torch3.lib(general.obj) : error LNK2019: unresolved external symbol __iob referenced in function "void __cdecl Torch::error(char const *,...)" (?error@Torch@@YAXPBDZZ)
1>.\Debug/I90Controller.exe
This RL Toolbox I builf it and there is an example there. After building it I tried the example and it worked. I checked their settings in Properties - C++ and Linker settings, and they are ignoring libc.lib. I have the same settings in my own project but is still not working. Should I build also torch3.lib? and if so...how whould I do it?
Business Accounts
Answer for Membership
by: jkrPosted on 2009-10-19 at 08:21:45ID: 25605983
'libc.lib' usually comes with VC++ and should be located in your 'Lib' directory, check your Visual Studio installation directory. Also Make sure that this folder is listed in either your 'LIB' environment variable or VC++'s global settings. For the latter, go to "Tools|Options", select "Projects and Solutions", "VC++ Directories" and select "Library files" from the drop-down box.