Article View: comp.os.linux.development.apps
Article #47Re: [POSIX Thread] Cannot Compile
From: Steve Murray
Date: Sat, 04 Oct 1997 00:00
Date: Sat, 04 Oct 1997 00:00
56 lines
2192 bytes
2192 bytes
Vi Nham wrote: > > Hi everyone, > > I have trouble compile a Posix Thread example on Linux (kernel 2.0.0). > > I believe my working environment is not setup correctly, can anyone give > some direction please? > > I found pthread.h in \usr\include directory. > This pthread is somehow linked to \usr\include\mit\pthread??? > I could not find any library file for linking. > > Here is an example I try to compile..... > > ====================================================== > > #include <stdio.h> [source removed for brevity] > pthread_exit; > } > > =========================================== > > If someone could tell me the compiler switch to use, to file to look for > or any FAQ to do with Posix thread programming in Linux environment, I > am very much appreciated. > > -- > Regards, > Vi Nham (vnham@socs.uts.edu.au) You've probably not got libpthreads installed - might I suggest that you have a look at the Linux Threads Home Page - it's got information that will sort you out ! http://linas.org/linux/threads-faq.html I think one of the better POSIX compliant threads packages is LinuxThreads by Xavier Leroy - it's a kernel-space implementation. Cheers, Steve -- Steve Murray Computer Systems Engineering Group Faculty of Engineering The University of Technology, Sydney email: stevem@eng.uts.edu.au www: http://www.ee.uts.edu.au/~stevem/
Technical Details
Message-ID:
<3435A19C.2033DB6F@eng.uts.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34331A2B.7E18A2ED@socs.uts.EDU.AU>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,d483269fd06e2623 X-Google-Attributes: gid10c696,public X-Google-Thread: ffc1e,d483269fd06e2623 X-Google-Attributes: gidffc1e,public X-Google-Thread: 102983,d483269fd06e2623 X-Google-Attributes: gid102983,public From: Steve Murray <stevem@eng.uts.edu.au> Subject: Re: [POSIX Thread] Cannot Compile Date: 1997/10/04 Message-ID: <3435A19C.2033DB6F@eng.uts.edu.au> X-Deja-AN: 277722547 References: <34331A2B.7E18A2ED@socs.uts.EDU.AU> X-Complaints-To: news@socs.uts.EDU.AU X-Trace: woodstock.socs.uts.EDU.AU 875930125 10644 (None) 138.25.41.201 Organization: The University of Technology, Sydney Newsgroups: comp.os.linux.development.apps,aus.computers.linux,comp.programming.threads