US>" error: Unable to open LNK1104 file 'LIBC.lib'."How do I deal with this?

Asked 1 years ago, Updated 1 years ago, 369 views

I am using Visual Studio Pro 2013 update 5.
After converting and compiling an old project (VC6) created, the following error appears:

 error: Cannot open LNK1104 file 'LIBC.lib'.

When I searched this site, I found the following posts:

Cannot open error LNK1104 file 'LIBCD.lib'

However, the solution presented there (with linker options set to /MT or /MD) did not resolve this error.

Where else should I check and how should I fix it?
Please let me know.Thank you for your cooperation.

visual-c++

2022-09-30 22:01

1 Answers

The LIBC.lib in the error message is a single-threaded release of the CRT library.Important Visual Studio 2005 Changes - CRT has

The single threaded CRT libraries libc.lib and libcd.lib have been removed. Use a multi-threaded CRT library. The /ML compiler flag is no longer supported. Unlocked versions of some functions have been added when performance differences between multi-threaded and single-threaded codes are a critical issue.

As explained, the single-threaded CRT library has been deprecated since Visual Studio 2005.You must migrate to a multi-threaded version of the CRT library.

You should recompile the object files linked to LIBC.lib.

Even if the source code does not exist in the object file linked to LIBC.lib and cannot be recompiled, effort and guts may help.However, there is no guarantee that it will work properly because it is coded and compiled with single thread in mind.


2022-09-30 22:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.