Groups
Groups
Sign in
Groups
Groups
西邮操作系统课程论坛
Conversations
About
Send feedback
Help
线程实验编译参数
2 views
Skip to first unread message
Magic.Yang
unread,
Apr 10, 2008, 1:46:10 AM
4/10/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 操作系统课程论坛
在编译线程实验的程序时候,文件里面已经加了<pthread.h>这个头文件,为什么还要在用gcc的时候加-lpthread这个参数
如果不加参数会出现: undefined reference to `pthread_create'
这样的提示
加参数后编译通过了.
Reply all
Reply to author
Forward
0 new messages