Error:ld returned 1 exit status

Source: Internet
Author: User

Tool Code::Blocks

Project Type: C + + Console program

Build Log

--------------Build: Debug in Cplus (compiler: GNU GCC Compiler)---------------

Mingw32-g++.exe-wall-fexceptions-g-iinclude-c D:\workspace\CPlus\include\b.h-o INCLUDE\B.H.GCH
Mingw32-g++.exe-o Bin\debug\cplus.exe include\b.h.gch OBJ\DEBUG\MAIN.O obj\debug\src\b.o
Include\b.h.gch:file not recognized:file format not recognized
Collect2.exe:error:ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
1 error (s), 0 warning (s) (0 minutes, 1 seconds)

Building information

= = = Build: Debug in Cplus (compiler: GNU GCC Compiler) = = =
Error:ld returned 1 exit status|
= = = Build Failed: 1 error (s), 0 warning (s) (0 minutes, 1 sec) = = =

Cause: Header files in C + + do not need to be compiled and linked

Solution: Remove the compiled and linked files from the options in the head file, and then recompile

Error:ld returned 1 exit status

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.