Summary of the C + + connectivity issues I have encountered

Source: Internet
Author: User

1: Unable to open kernel32.lib

For different versions of the Vs,lib library is not the same place, so first search kernel32.lib this file where, for example, I this kernel32.lib place is: C:\Program Files (x86) \ Windows Kits\ 8.1\lib\winv6.3\um\x86,

Once you find the location of this lib, just do the following:

Project Properties Connector General additional Library directory add the path to the folder where Kernel32.lib resides.

2:fatal error LNK1181: Could not open input file "****.lib";

This problem is generally some process is open to use the LIB, so generally shut down the corresponding process is good, can not find the corresponding process to shut down the machine to restart the test.

Well in the case it is a VS bug. Try to find which process keeps the thelibrary.lib opened.

3: The following are the errors I encountered using openv

"Try.exe" (Win32): "C:\Users\Lin\Desktop\example\try\Debug\try.exe" is loaded. The symbol is loaded. "Try.exe" (Win32): "C:\Windows\SysWOW64\ntdll.dll" is loaded. The symbol is loaded. "Try.exe" (Win32): "C:\Windows\SysWOW64\kernel32.dll" is loaded. The symbol is loaded. "Try.exe" (Win32): "C:\Windows\SysWOW64\KernelBase.dll" is loaded. The symbol is loaded. The program "[7076] Try.exe" has exited with a return value of -1073741701 (0xc000007b). Always thought it was the beginning of the x64 wrote a program, changed to write a program in Win32 left the DLL problem, the whole half a day, the original is OPENC environment variable forgot to change back.

4: Connection Problem instance

using an incomplete type the corresponding library contains a semicolon that also occurs where this error is usually missing somewhere in the program.

VS 2010 opens an instance with such an error:

Link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file

The ultimate Solution:
VS2010 After some updates, the Win32 Console project will be "error LNK1123" errors, the solution for the Project | Project Properties | Configuration Properties | Inventory Tool | INPUT and OUTPUT | Embed list "yes" to "no", But you have to set it up one time without creating a new project.
When establishing the VS2010 Win32 Project project, "Error LNK1123" errors are still occurring according to the solution above, and the solution is as follows:
The first step: the same as on.
Step two: Change Project | Project Properties | Configuration Properties | connector | manifest File | Embed list to "no".
The third step: the general computer after the two-step setup can solve the problem, but if there are problems, then click the method to solve:
Whether the computer is a 64bit operating system, if so, continue 2.
Find out if there are two cvtres.exe. One is C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\cvtres.exe and the other is C:\Windows\Microsoft.NET\Framework\v
4.0.30319\cvtres.exe. Right-click Properties | Details to view both version numbers, delete/rename older versions, or reset the path variable.

Unexpectedly, the root of the solution is the third step, after removing the old version of Cvtres.exe, you do not need to set the configuration every time.


Search in the computer cvtres.exe, found that there are multiple files, using the latest Cvtres.exe replace the old files can be replaced before you remember to back up, if not, can be replaced.


For example: My Computer installed VS2010, recently updated the system, patched some patches, the result of this error. Search in the computer found

C:\Program Files\Microsoft Visual Studio 10.0\vc\bin

C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7600.16385_none_ba476986f05abc65

C:\Windows\Microsoft.NET\Framework\v4.0.30319


There are cvtres.exe files in all three paths, so I try to replace the first path file with the file in the second path, and solve the problem.

Summary of the C + + connectivity issues I have encountered

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.