Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. linker command failed, error: cannot find -lc++
Forum Update on Monday, May 27th 2025

linker command failed, error: cannot find -lc++

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 495 Views
  • 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.
  • K Offline
    K Offline
    KlausF
    wrote on last edited by
    #1

    Hello,
    I'm using a freshly installed openSuse Leap 15.1, a freshly installed Android Studio and a freshly installed Qt Creator 4.9.2
    Based on Qt 5.12.4.
    All three work fine together, so far.
    Now I'm trying to deploy a just from Creator's wizard created project ( not changed a single line of code ) to an Android Virtual Device and I'm getting this linker-error:
    ":-1: error: linker command failed with exit code 1 (use -v to see invocation)"
    ":-1: error: error: cannot find -lc++", please see screenshot.
    Is there anybody out there who has ever come across this error message and can advise ?
    Thank you.
    0_1567158749849_Screenshot_2019-08-30_11-50-06.png

    1 Reply Last reply
    0
    • Quang PhuQ Offline
      Quang PhuQ Offline
      Quang Phu
      wrote on last edited by Quang Phu
      #2

      Hi @KlausF,
      You can refer this topic, it's similar.
      https://forum.qt.io/topic/103713/error-cannot-find-lc-qt-5-12-android
      Thanks!

      1 Reply Last reply
      3
      • K Offline
        K Offline
        KlausF
        wrote on last edited by
        #3

        Hello, hello Quang Phu,
        as mentioned by trousev in the post of Quang Phu's provided link, this made it work:
        "You also can write this into your own qmake file, not into system one. To be precise, just add into your project's .pro the following:

        QMAKE_LINK += -nostdlib++"

        Thanks everybody.

        1 Reply Last reply
        1

        • Login

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