cpp: usr/bin/ld: cannot find -l

前端 未结 2 1714
情歌与酒
情歌与酒 2021-01-30 12:05

I created a cpp project, which used a lib file named: libblpapi3_64.so This file comes from a library which I download it from Internet.

My project runs wit

2条回答
  •  别那么骄傲
    2021-01-30 12:25

    You could look at our Rblapi package which uses this very library too.

    Your basic question of "how do I make a library visible" really has two answers:

    1. Use ld.so. The easiest way is to copy blpapi3_64.so to /usr/local/lib. If you then call ldconfig to update the cache you should be all set. You can test this via ldconfig -p | grep blpapi which should show it.

    2. Use an rpath instruction when building your application; this basically encodes the path and makes you independent of ld.so.

提交回复
热议问题