Re: Problem compiling pthread
From: Gary R. Hook (nospam_at_nospammers.net)
Date: 10/30/03
- Next message: Friedhelm Neyer: "Wrong keyboard layout"
- Previous message: Gary R. Hook: "Re: Creating a statically linked executable using a dynamic library?"
- In reply to: Stu: "Problem compiling pthread"
- Next in thread: Stu: "Re: Problem compiling pthread"
- Reply: Stu: "Re: Problem compiling pthread"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 16:28:48 GMT
Stu wrote:
> I am running on AIX 5.1 and I have a simple main program:
> }
>
> When I compile it I get the following error:
>
> cc -O x.c -o x /usr/ccs/lib/libpthreads.a
This would be incorrect. You will want to compile for
threads support by using cc_r or xlc_r. The compiler will
then add -lpthreads to the link command (automatically).
-- Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE ________________________________________________________________________
- Next message: Friedhelm Neyer: "Wrong keyboard layout"
- Previous message: Gary R. Hook: "Re: Creating a statically linked executable using a dynamic library?"
- In reply to: Stu: "Problem compiling pthread"
- Next in thread: Stu: "Re: Problem compiling pthread"
- Reply: Stu: "Re: Problem compiling pthread"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|