Re: Problem compiling pthread

From: Gary R. Hook (nospam_at_nospammers.net)
Date: 10/30/03


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
________________________________________________________________________


Relevant Pages

  • Re: Strange value
    ... The language definition specifically denotes the result ... But this is an incorrect assumption. ... > would have thought that the second object would also get zero. ... > when I compile them or how often I compile them, ...
    (comp.lang.cpp)
  • Re: Problem compiling pthread
    ... > Stu wrote: ... > This would be incorrect. ... You will want to compile for ... Thanks for your suggestion, ...
    (comp.unix.aix)
  • Re: sscanf and int64 in Win32 and Unix - different results?
    ... This is incorrect. ... >interface to C++). ... so that you can compile it with a C compiler. ... Reading email is like searching for food in the garbage, ...
    (comp.lang.c)
  • [patch 1/4] i2c: Fix i2c-mv64xxx compilation error
    ... The busses/i2c-mv64xxx.c driver doesn't currently compile because of an ... incorrect argument to dev_err. ... This patch fixes that. ...
    (Linux-Kernel)
  • [patch 1/4] i2c: Fix i2c-mv64xxx compilation error
    ... The busses/i2c-mv64xxx.c driver doesn't currently compile because of an ... incorrect argument to dev_err. ... This patch fixes that. ...
    (Linux-Kernel)