473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

cannot open file 'LIBC.lib', /VERBOSE not revealing anything

Hello again,

I am trying to convert a VC6 project to VC9, and the linker tells me
that it cannot open file 'LIBC.lib'.
But I didn't find this lib referenced or added anywhere.
I used the linker option /VERBOSE:LIB, to have the compiler logging
which component needs it. But in Build.log it only mentions the error
mentioned above, it doesn't tell me any further details.
How would you go on now, please?

Thanks.
Anna
Oct 26 '08 #1
12 6855
Anna Smidt wrote:
Hello again,

I am trying to convert a VC6 project to VC9, and the linker tells me
that it cannot open file 'LIBC.lib'.
But I didn't find this lib referenced or added anywhere.
I used the linker option /VERBOSE:LIB, to have the compiler logging
which component needs it. But in Build.log it only mentions the error
mentioned above, it doesn't tell me any further details.
How would you go on now, please?

Thanks.
Anna
What if you create a dummy, no-op .lib or .obj file
named libc.lib, and put it where link can find it ?

--PA
Oct 26 '08 #2
What if you create a dummy, no-op .lib or .obj file
named libc.lib, and put it where link can find it ?

--PA
I don't know yet how to create a .lib file, but I used a .LIB file that
I found somewhere on my hard drive. It had nothing to do with my
project. I renamed it to LIBC.LIB and put it in my app's folder. The
compiler complained:

LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other
libs; use /NODEFAULTLIB:library

But there is no critical error anymore, and for the first time ever the
app compiled. :-)

But it's really strange to me what's going wrong with that LIBC.LIB, and
I don't really want to solve the problem by just giving the compiler/
linker a file that's named as it expects it. I am wondering why it wants
a file that it won't use.

Anna
Oct 27 '08 #3
If anybody still has ideas, please let me know. I find this all a bit
strange.
Thanks,
Anna
Oct 27 '08 #4
Anna Smidt wrote:
If anybody still has ideas, please let me know. I find this all a bit
strange.
Anna:

Libc.lib is the old single-threaded static-linked C runtime library. This is no
longer used in recent versions of Visual C++. Static-linked projects should use
the multi-threaded library LibMT.lib.

Did you look in

Project Properties->Configuration Properties->Linker->Input->Additional Dependencies

? If you see libc.lib there, remove it.

Otherwise, is all the source code for your project contained within the project,
or are you linking some compiled libraries? It seems to be it must be the
latter, because Visual Studio 2008 itself will never try to link Libc.lib.

Maybe you should tell us right from the beginning exactly what you have done here.

--
David Wilkinson
Visual C++ MVP
Oct 27 '08 #5
Did you look in
>
Project Properties->Configuration Properties->Linker->Input->Additional
Dependencies

? If you see libc.lib there, remove it.
There are no references to this file. Neither under Additional
Dependencies nor within the source code.
Otherwise, is all the source code for your project contained within the
project, or are you linking some compiled libraries? It seems to be it
must be the latter, because Visual Studio 2008 itself will never try to
link Libc.lib.
In the solution there are 3 projects, and the last one has 1 of the 3 as
an additional include
Maybe you should tell us right from the beginning exactly what you have
done here.
Where should I start?

Anna
Oct 27 '08 #6
Anna Smidt wrote:
Where should I start?
Well maybe tell us why nobody in your
company can help you in the transition from VB to c++,
or why they won't invite a consultant to start the
project quickly, and in the right way?
Not nice of them to let a lady struggling alone :)

--PA
Oct 27 '08 #7
Anna Smidt wrote:
There are no references to this file. Neither under Additional
Dependencies nor within the source code.
>Otherwise, is all the source code for your project contained within
the project, or are you linking some compiled libraries? It seems to
be it must be the latter, because Visual Studio 2008 itself will never
try to link Libc.lib.

In the solution there are 3 projects, and the last one has 1 of the 3 as
an additional include
Have you checked the additional dependencies of all the projects?

[What do you mean by "additional include"?]
>Maybe you should tell us right from the beginning exactly what you
have done here.

Where should I start?
.... from the beginning.

--
David Wilkinson
Visual C++ MVP
Oct 27 '08 #8
I am a hobby programmer, I don't have a company! I am working in a
university, but that doesn't have anything what I do in VB6 or C++ for fun.

Anna
Oct 28 '08 #9
Have you checked the additional dependencies of all the projects?
Yes, dozens of times.

I have the following additional dependencies:

-Custom:
cv.lib
cxcore.lib
highgui.lib
odbc32.lib
odbccp32.lib

-Inherited:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib

[What do you mean by "additional include"?]
I meant project->properties->C++->Additional include directories
>Where should I start?

... from the beginning.
I saw an interesting project once written in C++. I didn't know any C++,
so I came here and was helped very nicely.
See my 30 previous posts :-)

I will try to fight a little for myself now and if I find out where the
linker's wish for LIBC.lic comes from I will post it.
I think I cannot put all the facts in words because I acted rudely on
this app and would do many things different if I had to do it again.

Anna
Oct 28 '08 #10
Anna Smidt wrote:
>
>Have you checked the additional dependencies of all the projects?

Yes, dozens of times.

I have the following additional dependencies:

-Custom:
cv.lib
cxcore.lib
highgui.lib
odbc32.lib
odbccp32.lib

-Inherited:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib

>[What do you mean by "additional include"?]

I meant project->properties->C++->Additional include directories
>>Where should I start?

... from the beginning.
I saw an interesting project once written in C++. I didn't know any C++,
so I came here and was helped very nicely.
See my 30 previous posts :-)

I will try to fight a little for myself now and if I find out where the
linker's wish for LIBC.lic comes from I will post it.
I think I cannot put all the facts in words because I acted rudely on
this app and would do many things different if I had to do it again.
Anna:

Well, I really think you should have started out with something simpler, like
writing your own simple programs, reading a C++ book, working through the
examples, that sort of thing.

You say "if I had to do it again". Why don't you just start again, if you think
you may have messed the project up?

I don't know anything about OpenCV, but about these files:

cv.lib
cxcore.lib
highgui.lib

How were these compiled? Presumably they are import libraries for DLL's of the
same name?

--
David Wilkinson
Visual C++ MVP
Oct 28 '08 #11
Anna Smidt wrote:
>
>Have you checked the additional dependencies of all the projects?

Yes, dozens of times.

I have the following additional dependencies:

-Custom:
cv.lib
cxcore.lib
highgui.lib
odbc32.lib
odbccp32.lib

-Inherited:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib

>[What do you mean by "additional include"?]

I meant project->properties->C++->Additional include directories
>>Where should I start?

... from the beginning.
I saw an interesting project once written in C++. I didn't know any C++,
so I came here and was helped very nicely.
See my 30 previous posts :-)

I will try to fight a little for myself now and if I find out where the
linker's wish for LIBC.lic comes from I will post it.
I think I cannot put all the facts in words because I acted rudely on
this app and would do many things different if I had to do it again.
Anna:

This attempt to link libc.lib should not be there, but you might try going to

Project Properties->Configuration Properties->Linker->Input->Ignore Specific Library

and typing libc.lib there.

--
David Wilkinson
Visual C++ MVP
Oct 28 '08 #12
David,

thanks. I recompiled OpenCV and DirectShow, maybe that's already where
the trouble started regarding LIBC.lib.
Yes, I will do everything from the start again.
I have a C++ book, but I learn quicker when I dive right into a project
and can learn from others. In the book problems don't occur.
I will try to set LIBC.lib up to be ignored, but that's only a hack like
renaming another file to LIBC.lib, isn't it?
I will try to understand it by redoing everything now.

Anna
Oct 29 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Irmen de Jong | last post by:
Hello, I don't understand why the following doesn't work. What I want to do is dynamically import some generated Python code and I'm doing this using compile and exec'ing it in the dict of a new...
1
by: Martin | last post by:
I got a core from my client but i am not able to find out where it crashed. I got the following: From my experience, when i got lots of warning which complains about the path mismatch.. I can...
0
by: Gary | last post by:
Downloaded the packages from sunfreeware.com and did pkgadd When I try to run safe_mysqld I get fatal: libz.so: open failed: No such file or directory This library is indeed missing ...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Phil Campaigne | last post by:
Hi Tom, THanks for your response. Here are my results: -bash-2.05b$ ldd /usr/local/pgsql/bin/psql libpq.so.3 => /usr/local/pgsql/lib/libpq.so.3 (0x40013000) libz.so.1 => /usr/lib/libz.so.1...
1
by: Amrit Kohli | last post by:
Hello. I am trying to run the VS C++ compiler from the command line. I enter the following: cl -GX prog1.cpp It compiles the file fine, but then when it goes to link the object file, I...
3
by: gmax2006 | last post by:
Hi, I am using RedHat Linux 4. and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and Python 2.3.4. When I run the application through...
2
by: Zach | last post by:
I compiled a game client and it crashed (segmentation fault) resulting in a core file being generated. I'm trying to find out exactly what caused it to crash. Any ideas how I can do this with gdb?...
7
by: Spectrum | last post by:
I am writing some Python code using the Message Passing Interface (MPI), an API used in parallel computing. There exist a number of Python implementations of MPI, but apparently they all rely on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.