Eclipse CDT Auto Include Shared Libraries

前端 未结 2 778
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 10:10

I am working in Eclipse: Helios Service Release 1 using Eclipse CDT compiling using g++

I have just started to have a go at using Shared Libraries in my projects but

相关标签:
2条回答
  • 2021-01-07 10:33

    You just need to set LD_LIBRARY_PATH to include the folder in which the shared libraries are. Something like this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/lib/

    0 讨论(0)
  • 2021-01-07 10:52

    Run ldconfig as root to update the cache - if that still doesn't help, you need to add the path to the file ld.so.conf (just type it in on its own line) or better yet, add the entry to a new file (easier to delete) in directory ld.so.conf.d.

    0 讨论(0)
提交回复
热议问题