eclipse c/c++编程引用动态库(so)


动态库的引用:

右击项目,选中属性,在属性页中:

C/C++ Build=》Settings=》Tool Settings=》GCC C Compiler=》command  栏写上gcc -lpthread -ltcmrdriver   

 (用户自定义库libtcmrdriver.so)

同样在GCC C Linker的command中写上gcc -lpthread -ltcmrdriver   

静态库的引用:

在GCC C Linker栏下Miscellaneous栏,在下面的Other Objects中添加静态库的地址 

原文地址:https://www.cnblogs.com/hzcya1995/p/13318900.html