2013年7月30日

Installing Wine 1.5: configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries(转载)

摘要: 转自:http://askubuntu.com/questions/123273/installing-wine-1-5-configure-error-cannot-build-a-32-bit-program-you-need-t./configure --enable-win64 阅读全文

posted @ 2013-07-30 21:55 次奥砖家 阅读(1830) 评论(0) 推荐(1) 编辑

Linux系统调用之open(), close() (转载)

摘要: 转自:http://joe.is-programmer.com/posts/17463.html open函数可以打开或创建一个文件。#include #include #include int open(const char *pathname, int flags);int open(const char *pathname, int flags, mode_t mode); 返回值:成功返回新分配的文件描述符,出错返回-1并设置errnopathname参数是要打开或创建的文件名,和fopen一样,pathname既可以是相对路径也可以是绝对路径。flags参数有一系列常数值可... 阅读全文

posted @ 2013-07-30 16:55 次奥砖家 阅读(5579) 评论(0) 推荐(0) 编辑

undefined reference to 'pthread_create'问题解决(转载)

摘要: 转自:http://blog.csdn.net/llqkk/article/details/2854558由于是Linux新手,所以现在才开始接触线程编程,照着GUN/Linux编程指南中的一个例子输入编译,结果出现如下错误:undefined reference to 'pthread_create'undefined reference to 'pthread_join'问题原因: pthread 库不是 Linux 系统默认的库,连接时需要使用静态库 libpthread.a,所以在使用pthread_create()创建线程,以及调用 pthread_a 阅读全文

posted @ 2013-07-30 15:35 次奥砖家 阅读(350) 评论(0) 推荐(0) 编辑

导航