[LLVMdev] pthread?
Kevin Gibbs
ktgibbs at uiuc.edu
Tue Dec 23 23:51:01 PST 2003
Try
llvmgcc pthread.c -o pthread.ll -pthread
You have to link in the pthreads library, and I believe -pthread is all you
need on a redhat 9 box.
Kevin
> -----Original Message-----
> From: llvmdev-admin at cs.uiuc.edu [mailto:llvmdev-admin at cs.uiuc.edu] On
> Behalf Of yue
> Sent: Tuesday, December 23, 2003 11:43 PM
> To: llvmdev at cs.uiuc.edu
> Subject: [LLVMdev] pthread?
>
> hi,
>
> I compile a pthread program using llvmgcc, but when i run pthread.ll, it
> show:
> ------------------
> [yue at RH9 test]$ llvmgcc pthread.c -o pthread.ll
> [yue at RH9 test]$ ls
> pthread pthread.c pthread.ll pthread.ll.bc
> [yue at RH9 test]$ ./pthread.ll
> Creating thread 0
> WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function
> instead!
> ERROR; return code from pthread_create() is -1073745164
> [yue at RH9 test]$
> --------------------
> how to solve the problem?
>
> yueqiang
> 2003/12/24
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list