×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    1

    How to solve Error 1: collect2: ld returned 1 exit status

    Hi,

    I just downloaded QT.2009.03 for windows and tried to make a gui application.
    It gives :-1: error: collect2: ld returned 1 exit status when building the program.

    can somebody suggest me the solution.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to solve Error 1: collect2: ld returned 1 exit status

    ld didn't find libraries needed for your application. The possible reasons:
    bug in the application code or you didn't install (improperly installed) some libraries.

    Quote Originally Posted by Qtime View Post
    Hi,

    I just downloaded QT.2009.03 for windows and tried to make a gui application.
    It gives :-1: error: collect2: ld returned 1 exit status when building the program.

    can somebody suggest me the solution.

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Re: How to solve Error 1: collect2: ld returned 1 exit status

    Another reason might be that your source is incomplete and calls method DECLARATIONS that get called but the method IMPLEMENTATIONS are missing.

    Declaration is the stuff that you usually put in a header file (method signature without body)
    Implementation is the signature with body.

    Usually if you look in the linker output, you can find which implementation the linker is missing.

  4. #4
    Registered User
    Join Date
    Oct 2009
    Location
    Bandung, Indonesia
    Posts
    36

    Re: How to solve Error 1: collect2: ld returned 1 exit status

    Quote Originally Posted by Qtime View Post
    Hi,

    I just downloaded QT.2009.03 for windows and tried to make a gui application.
    It gives :-1: error: collect2: ld returned 1 exit status when building the program.

    can somebody suggest me the solution.
    Qtime, click the "Compile Output" view (Alt+4) to see more detailed info.

    From there you should be able to determine the error yourself.

    Or you can paste the complete output here in the forum as it'll be more helpful than the concise error message you provided.

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    13

    Re: How to solve Error 1: collect2: ld returned 1 exit status

    :-1: error: collect2: ld returned 1 exit status
    I often get this error, then i forget to close my previous builded application and after small changes i try to build it again sometimes old instance of program runs in background so you can't see it, then you might need to close it by using windows task manager or in Linux kill command.

  6. #6
    Registered User
    Join Date
    Jul 2011
    Posts
    2

    Re: How to solve Error 1: collect2: ld returned 1 exit status

    Hi
    i know what is wrong!
    at bottom of the page , click on application Output.
    above that you can see stop button..click on it!
    It's ok now! reRun your project!

  7. #7
    Registered User
    Join Date
    Jul 2011
    Posts
    2

    Re: How to solve Error 1: collect2: ld returned 1 exit status

    i know what is wrong!
    at bottom of the page , click on application Output.
    above that you can see stop button..click on it!
    It's ok now! reRun your project!

Similar Threads

  1. status pane in E61 screen (320x240 ) s603rd
    By francobellu in forum Symbian
    Replies: 2
    Last Post: 2008-07-10, 12:48
  2. C++-Tool exit status codes during "make"
    By newnb in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-10-02, 21:54
  3. tool exit status
    By ashmeel in forum Symbian
    Replies: 4
    Last Post: 2006-10-02, 16:41
  4. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33
  5. Getting started with Carbide.vs -- running the app
    By ET3D in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-11-23, 17:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×