ITeye博客

在用netbeans编写程序时-lpthread问题

maosuhan · 2010-12-13 14:09 · cc++ · 编程语言 · C · C++ · Netbeans · C# · Markdown

编一个程序,需要用到pthread这个库,但是这个库不是c默认的库,所以要编译的时候加上-lpthread这个命令。我用的是netbeans,但是我看里面的makefile不知道写的是什么东东。于是我试图在properties'的c compiler里面添加addition options加上-lpthread但是没用。于是网上查了一下,知道应该在Linker的Libraries的里面的add options的other option加上-lpthread就可以了。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。