曙海教育集团论坛Linux专区Linux应用开发 → 回复帖子

  回复帖子
用户名:   *您没有注册?
密码:   *忘记论坛密码?    标题采用“回复:XXX....”
主题标题:  *不得超过 200 个汉字
当前心情
上一页 发帖表情 下一页
内容
高级设置: 签名: 回帖通知:
 

主题新回顾(发布时间:2010-11-23 14:00:31)
--  作者:wangxinxin
--  mips linux技术经验总结

1:
mipsel-linux-gcc xxxx.o  -L/xxxx/lib -lixml -lthreadutil -lpthread -lupnp -o ushare -static
/xxxx/upnpapi.c:216: undefined reference to `pthread_rwlock_init'
应该使用下面的命令
mipsel-linux-gcc -o ushare -static -Wall -Wl,--start-group xxxxxx.o    -L/xxxx/lib -lixml -lthreadutil -lpthread -lupnp -Wl,--end-group
原因未知
2:
echo -ne "string \n"   -ne参数解释转义字符
       -n     do not output the trailing newline
       -e     enable interpretation of the backslash-escaped characters listed
              below
3:
sed /^$/d 删除文件中的空行