Results 1 to 5 of 5

Thread: Compile issues - collect2: ld returned 5 exit status

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile issues - collect2: ld returned 5 exit status

    My mistake there. I don't know why I mentioned Visual Studio. I used VS to compile the dependent libraries for the project, but I am using QT to compile the project.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Compile issues - collect2: ld returned 5 exit status

    I don't know why I mentioned Visual Studio. I used VS to compile the dependent libraries for the project, but I am using QT to compile the project.
    Not good since the binaries don't match.
    Compile all your binaries with the same compiler.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Sep 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile issues - collect2: ld returned 5 exit status

    Do the include libraries have to be compiled with the same compiler? The reason I ask is not all of the include libraries have a makefile for cmake. Some just have one for visual studio?

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: ld returned 1 exit status
    By Cucus in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd March 2011, 15:45
  3. Collect2:Id Returned 1 exit status
    By c_srikanth1984 in forum Qt Programming
    Replies: 9
    Last Post: 14th February 2010, 04:58
  4. collect2: ld returned 1 exit status
    By assismvla in forum Qt Programming
    Replies: 1
    Last Post: 25th May 2009, 01:51

Tags for this Thread

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.