摘要: 下载地址:zthread.sourceforge.net或者直接下载附件(话说为什么河畔不能上传tar.gz?)./configure之后报错如图libtoolize --copy --force之后继续报错libtoolize --version显示2.4.2求解。。。谁能用configure直接... 阅读全文
posted @ 2014-12-02 18:32 rldts 阅读(113) 评论(0) 推荐(0)
摘要: linker对链接顺序要求很严格,如果顺序有误,多半就会报undefined reference to xxxxxx的错误文件目录:代码:main.cpp1 #include "Test.h"2 3 using namespace std;4 5 int main()6 {7 Test::t... 阅读全文
posted @ 2014-12-02 16:00 rldts 阅读(4825) 评论(0) 推荐(0)
摘要: 代码见这篇随笔在Windows下的运行结果:ZThread打印了一堆东西(并不是我写的)文件结构:最开始我以为是编译选项没弄对,同样的代码放到Linux下编译,还是打印这些信息注意我在Linux下编译的时候用的是如下命令:g++ -c *.cppg++ -o main.o LiftOff.o -s ... 阅读全文
posted @ 2014-12-02 15:20 rldts 阅读(330) 评论(0) 推荐(0)
摘要: 头一回。。。把windows下的程序挪到linux下,代码见这篇随笔1、编译ZTHREAD,使用./configure失败,直接编译的,方法还是上面提到的那篇随笔2、编译源码,最开始用的cc,后来老是报undefined reference,甚至hello world程序也报undefined re... 阅读全文
posted @ 2014-12-02 14:51 rldts 阅读(857) 评论(0) 推荐(0)