How to set linker flags
Unsolved
General and Desktop
-
Hello I am getting the errors
\./build-Program-Debug/simulator: /lib64/libstdc++.so.6: version \CXXABI_1.3.9' not found (required by ./build-Program-Debug/simulator)\``` \./build-Program-Debug/simulator: /lib64/libstdc++.so.6: version \GLIBCXX_3.4.21' not found (required by ./build-Program-Debug/simulator)\
While trying to run a program on a remote server. Supposedly I have to somehow set the linker flag
'-Wl,-rpath,$ORIGIN'
or
QMAKE_RPATHDIR += lib
and add a lib folder with the file to my program directory in question but I googled and there is no clear explanation of how to do it with QT Creator 4.5.2
-
@A123 said in How to set linker flags:
While trying to run a program on a remote server
What OS is running on that server and what platform (x86, ARM,...) is it?
And what is running on your development machine?You can find all qmake (it is not QtCreator involved here) variables here: https://doc.qt.io/qt-5/qmake-variable-reference.html