linker command failed, error: cannot find -lc++
-
wrote on 30 Aug 2019, 09:52 last edited by
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.
-
wrote on 30 Aug 2019, 10:11 last edited by Quang Phu
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! -
wrote on 31 Aug 2019, 07:46 last edited by
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/3