显示下一条  |  关闭

lameck的博客

我想永远和你在一起~~~

 
 
 
 
 
 

openwrt编译错误

2012-1-31 9:22:42 阅读1 评论0 312012/01 Jan31

1.   /xxx/xxx/xxx/openwrt/scripts/brcmImage. pl -t -p ....
     Can't locate Compress/Zlib.pm in @INC (@INC contains:/usr/lib/perl5/site_per1/5.8.8/i386-linux-thread-multi ....
    
     解决: 出现这个错误是因为perl-Compress-Zlib没有安装,安装即可
       方法1:

作者  | 2012-1-31 9:22:42 | 阅读(1) |评论(0) | 阅读全文>>

使用openwrt-tools编译busybox错误

2012-1-17 11:38:11 阅读10 评论0 172012/01 Jan17

1. error: #error "You need to build uClibc with UCLIBC_HAS_RPC for NFS support"  
 

作者  | 2012-1-17 11:38:11 | 阅读(10) |评论(0) | 阅读全文>>

linux + php + sqlite 环境配置 错误

2012-1-16 17:10:12 阅读8 评论0 162012/01 Jan16

1. could not find driver
     a. 检查 php.ini 文件中的配置,主要看以下几项:
extension_dir="/usr/lib/php"

extension=pdo.so 
extension=pdo_sqlite.so 
extension=sqlite3.so
         检查看

作者  | 2012-1-16 17:10:12 | 阅读(8) |评论(0) | 阅读全文>>

linux 动态链接库编译与使用2--手动加载

2011-12-15 9:21:47 阅读15 评论0 152011/12 Dec15

linux 提供了dlopen、dlsym dlerror dlclose等函数来操作动态库。可以利用这些函数在程序中手动的加载动态库和使用其中的函数。

void * dlopen( const char * pathname, int mode );
void* dlsym(void* handle,const char* symbol);
const char *dlerror(void);
int dlclose (void *handle);

作者  | 2011-12-15 9:21:47 | 阅读(15) |评论(0) | 阅读全文>>

linux 动态链接库编译与使用1--动态加载

2011-12-14 16:58:10 阅读15 评论0 142011/12 Dec14

linux 动态链接库编译与使用--动态加载:
      现有mian.c、test.c、test.h三个文件(可参考下边的代码),其中test.c\test.h中为函数test_fun()的定义与声明,在main.c中使用了此函数。现在要把test.c编译为动态连接库(libtest.so)的形式,并使用此动态库。
1. 编译动态库:
                # gcc -c main.o -o main.o
# gcc -c test.c -o test.o
# gcc -shared test.o -o libtest.so

作者  | 2011-12-14 16:58:10 | 阅读(15) |评论(0) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 我要留言
 
 
 
留言列表加载中...
 
 
 
 
 

发现好博客

 
 
列表加载中...
 
 
 
 
 
 
 
 
 
 
 
下载音乐盒  曲目表歌词秀
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

有道博客搜索

 
 
 
 
 
 

日历

 
 
模块内容加载中...
 
 
 
 
 
 
 

北京市 海淀区 天秤座

 发消息  写留言

 
博客等级加载中...
今日访问加载中...
总访问量加载中...
最后登录加载中...
 
 
 
 
 
 
 
心情随笔列表加载中...
 
 
 
 
 
 
 
模块内容加载中...
 
 
 
 
 
 
 
博友列表加载中...
 
 
 
 
 
 
 
列表加载中...
 
 
 
 
 

自定义模块

 
 
模块内容加载中...
 
 
 
 
 
 
 
日志评论
评论列表加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

   
创建博客 登录  
 关注