Fatal error lnk1000: Internal error during linkermain

Source: Internet
Author: User

Vs2008 SP1

There was a project, and there was no problem at the beginning. Later, when debugging, there was always a fatal error lnk1000: Internal error during linkermain Link error.

Next, debug again ~~~

I searched the internet for the reason: Click me! Http://social.msdn.microsoft.com/Forums/zh-CN/vcgeneral/thread/aba5ed7e-d4b7-45b1-ab1f-61e0a7ae25f5)

Where:

You may get this error if you mix standard header files (for example, dos. h) and your own files. # include the standard
Headers first, followed by your own header files.

Then, analysis:

Previously, the MFC project needs to print the output information, and then a console is added for output. At the beginning, printf cannot be output, so we have to use _ cprintf, and then add this header file # include <conio. h>

At the beginning, you can print the information, and debug is no problem.

Then, don't understand, Don't know which function is added, and suddenly printf has a lot of information. Then the Link error occurs.

After finding out the cause, block # include <conio. h> and no longer see this link error .....

=======================================================

1. When can printf be directly output on the console? When can printf be unable to output information? Can it only be _ cprintf?

2. Is it because # include <conio. h> is the Link error true?

3. Why is there a link error when # include <conio. h> and printf cannot be output .....

Is it messy .....

When (then every second) then every second (then every second) zookeeper (zookeeper) zookeeper (zookeeper) zookeeper (zookeeper) zookeeper (zookeeper) Transaction

PS:

Conio. H is not the header file in the C standard library.
Conio is short for console input/output (console input/output). It defines functions for data input and output through the console, mainly for operations generated by users by keyboard, for example, the getch () function.

Forgot to add the solution?

: Modify the link options. Method: Project-> properties-> linker-> General "enable incremental link", change "Yes (/Incremental)" to "no (/Incremental: no) ", and then click OK.

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.