Linux对线程的支持有点土啊,今天在一台Turbo Linux 13的机器上,使用gettid死活提示:
gettid was not declared in this scope....
网上参考了这篇文章
对于比较老的版本,需要借助系统调用才能完成获取线程ID……
#include <sys/syscall.h>
#define gettid() syscall(__NR_gettid)[......]
SWIG:Simplified Wrapper and Interface Generator,顾名思义,就是将C/C++包装为其他高级语言的Wrapper工具,非常好用。
该项目历史悠久(创始于1995年!),且一直非常活跃,目前最新版本为2011年5月发布的2.0.4。
1、安装SWIG
wget http://prdownloads.sourceforge.net/swig/swig-2.0.4.tar.gz
tar -xzvf swig-2.0.4.tar.gz
cd[......]
http://www.cnblogs.com/it-ezone/archive/2011/09/09/MySpace.html[......]
http://live.gnome.org/Nautilus/Extending
http://software.flogisoft.com/nautilus-terminal/en/
nautilus-open-terminal[......]