以文本方式查看主题

-  曙海教育集团论坛  (http://www.sun4.cn/bbs/index.asp)
--  Linux应用开发  (http://www.sun4.cn/bbs/list.asp?boardid=32)
----  mips linux技术经验总结  (http://www.sun4.cn/bbs/dispbbs.asp?boardid=32&id=1689)

--  作者:wangxinxin
--  发布时间:2010-11-23 14:00:31
--  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 删除文件中的空行