+ -
当前位置:首页 → 问答吧 → 多线程问题,请高手帮帮忙啊~~~!!

多线程问题,请高手帮帮忙啊~~~!!

时间:2010-11-03

来源:互联网

I am calling sem sem_*funcs in my proms,but the linker complains Linker error - undefined reference to `sem_init':<
,my IDE is codeblocks, and I know the solved method to compile it with -lpthreads,but how solve it in codeblocks?

By the way , i am new to linux programming.

My environment:
Kubuntu 10.10
codeblocks 10.05 compiled by myself
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

thx!

作者: kinglee0531   发布时间: 2010-11-03