C++: External library in eclipse CDT

前端 未结 3 1130
無奈伤痛
無奈伤痛 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:56

    I normally configure

    1. the library
    2. the library search path (Needed for compiliation)
    3. the runtime search path (-rpath Linker option)

    (see images below and exchange the path in the Linker flags to that one you used in the library search path)

    Library Search path Linker options for runtime search path

提交回复
热议问题