Results 1 to 5 of 5

Thread: error: collect2: ld returned 1 exit status

  1. #1
    Join Date
    Oct 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default error: collect2: ld returned 1 exit status

    hey,

    i tried to compile and it gave me the error:
    collect2: ld returned 1 exit status

    how can i solve it?
    thanks,
    nataly

  2. #2
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: error: collect2: ld returned 1 exit status

    Maybe the application is running when you compile them.

    Best Regards
    NoRulez

  3. #3
    Join Date
    Oct 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error: collect2: ld returned 1 exit status

    the application is not running

    before the error i get:
    undefinded referance to a class..

  4. #4
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: error: collect2: ld returned 1 exit status

    Please give me a little bit more information, which error maybe source code, ...

    Best Regards
    NoRulez

  5. #5
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: error: collect2: ld returned 1 exit status

    you don't have some library(-ies) or they can't be found by linker. Check the compile output to see what libraries are missing
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. collect2: ld returned 1 exit status
    By qtnewbie123 in forum Installation and Deployment
    Replies: 9
    Last Post: 12th July 2011, 18:51
  2. Collect2:Id Returned 1 exit status
    By c_srikanth1984 in forum Qt Programming
    Replies: 9
    Last Post: 14th February 2010, 04:58
  3. error: collect2: ld returned 1 exit status
    By srohit24 in forum Qt Programming
    Replies: 3
    Last Post: 1st December 2009, 06:32
  4. collect2: ld returned 1 exit status error
    By gmsk19 in forum Qt Tools
    Replies: 11
    Last Post: 25th July 2009, 02:05
  5. collect2: ld returned 1 exit status
    By assismvla in forum Qt Programming
    Replies: 1
    Last Post: 25th May 2009, 01:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.