Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OS X Qt4 -> Qt5 error "ld: library not found for -lstdc++"
Forum Updated to NodeBB v4.3 + New Features

OS X Qt4 -> Qt5 error "ld: library not found for -lstdc++"

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jlub
    wrote on last edited by
    #1

    Hi there,

    While porting an open source project form Qt4 to Qt5, the final link step fails : here is the relevant part of the log.

    ld: warning: directory not found for option '-F/Qt/5.0.2/clang_64/qtdeclarative/lib'
    ld: warning: directory not found for option '-F/Qt/5.0.2/clang_64/qtbase/lib'
    ld: warning: directory not found for option '-F/Qt/5.0.2/clang_64/qtwebkit/lib'
    ld: warning: directory not found for option '-F/Qt/5.0.2/clang_64/qtjsbackend/lib'
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    I have found on the web notes about the warnings but nothing about the error.
    I tried to add the search path in the .pro file (LFLAGS += /Developer/SDKs/MacOSX10.6.sdk/usr/lib) to no avail.
    As I am fairly new to Qt, I feel lost.

    TIA

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Did you try to remove the entire shadow build directory, re-run qmake and build again? It is possible that the project is compiled in the same output directory and "old" Qt4 object files are used in the linking process.
      Greetz

      Greetz, Jeroen

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved