Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4590936
  • 博文数量: 385
  • 博客积分: 21208
  • 博客等级: 上将
  • 技术积分: 4393
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-30 13:40
文章分类

全部博文(385)

文章存档

2015年(1)

2014年(3)

2012年(16)

2011年(42)

2010年(1)

2009年(2)

2008年(34)

2007年(188)

2006年(110)

分类: LINUX

2008-09-13 19:20:04



动态链接库
文件:so_test.rar
大小:0KB
下载:下载

将库所在的路径设置在 LD_LIBRARY_PATH 环境变量中,或者把生成的库文件拷贝到当前目录下使用。

[root@hdLinux so_test]# cp libtest.so  /usr/lib/
[root@hdLinux so_test]# ./test_main
this is in test_a...this is in test_b...this is in test_c...[root@hdLinux so_test]#


[root@hdLinux so_test]# export LD_LIBRARY_PATH=`pwd`
[root@hdLinux so_test]# ./test_main
this is in test_a...this is in test_b...this is in test_c...[root@hdLinux so_test]#
阅读(2398) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~