看板 DFBSD_commit 關於我們 聯絡資訊
On Tue, Apr 05, 2005 at 04:04:22PM -0700, David Xu wrote: > davidxu 2005/04/05 16:04:22 PDT > > DragonFly src repository > > Modified files: > lib/libthread_xu/thread thr_cond.c thr_mutex.c thr_private.h > thr_rwlock.c > Log: > Remove unused strong reference. > > Revision Changes Path > 1.5 +0 -8 src/lib/libthread_xu/thread/thr_cond.c > 1.4 +0 -4 src/lib/libthread_xu/thread/thr_mutex.c > 1.4 +0 -13 src/lib/libthread_xu/thread/thr_private.h > 1.3 +0 -5 src/lib/libthread_xu/thread/thr_rwlock.c Hi, am I missing something? $ cat a.c int main(){return 0;} $ gcc a.c -lthread_xu; echo $? /usr/lib/libthread_xu.so: undefined reference to `_thr_mutex_lock' /usr/lib/libthread_xu.so: undefined reference to `_thr_cond_wait' /usr/lib/libthread_xu.so: undefined reference to `_thr_cond_broadcast' /usr/lib/libthread_xu.so: undefined reference to `_thr_mutex_unlock' /usr/lib/libthread_xu.so: undefined reference to `_thr_cond_signal' 1 $ gcc a.c -lthread_xu -static; echo $? 0