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. How to set linker flags
Forum Updated to NodeBB v4.3 + New Features

How to set linker flags

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.3k 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.
  • A Offline
    A Offline
    A123
    wrote on last edited by
    #1

    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
    jsulmJ 1 Reply Last reply
    0
    • A A123

      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
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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