Qt error: collect2: LD returned 1 exit status (Summary)

Source: Internet
Author: User

Through the accumulation of errors and related information on the Internet, I briefly summarized the Common Errors:

1. Examples of successful compilation are executed in the background, sometimes flashing. If you build again, the above error will be prompted.

Solution: Open the task manager, find the corresponding EXE process, and close it. Or directly close qtcreator.

2. If compilation fails, the most common case is that the header file to be included by the program itself is missing.

Solution: carefully search for the header files used by the base class and include the files.

3. The related slot functions in the H file are not defined in the CPP file.

Solution: Find the missing slot function and define it as needed.

The above errors may also occur in many cases. I hope you can search for related resources and summarize the methods to pave the way for future generations to learn!

I am a beginner myself. What's wrong? I hope you can pick up your fingers. Thank you!

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.