C++: External library in eclipse CDT

前端 未结 3 1132
無奈伤痛
無奈伤痛 2020-12-09 21:42

Now I am using eclipse CDT for my C/C++ Application, but there is problem when I link my external library, it could not be loaded properly at run time, even through I put th

3条回答
  •  悲哀的现实
    2020-12-09 21:49

    You should pay attention to what is in parentheses: Other options (-Xlinker [option]).

    The way to pass options is different. Instead of using:

    -Wl,-rpath,'${ProjDirPath}/../../system/lib'
    

    You must use:

    -rpath '${ProjDirPath}/../../system/lib'
    

    That is, remove the "-Wl," and replace the second "," by " " (space).

    enter image description here

    enter image description here

提交回复
热议问题