/usr/bin/ld: cannot find

后端 未结 4 1570
闹比i
闹比i 2020-12-31 00:36

I created a .so file and put it in the location /opt/lib and added this path to LD_LIBRARY_PATH now after this when I try to compile m

4条回答
  •  无人及你
    2020-12-31 01:06

    Add -L/opt/lib to your compiler parameters, this makes the compiler and linker search that path for libcalc.so in that folder.

提交回复
热议问题