On Wed, Aug 19, 2009 at 4:07 PM, Darryl Gove <Darryl.Gove at sun.com> wrote:
> If you look at the output from -# you'll see that you are actually passing > -p -t -hread to the compiler. > > $ cc -# -c t.c -pthread > ### cc: Note: NLSPATH = > /opt/SunStudioExpress/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SunStudioExpress/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat > ### command line files and options (expanded): > ### -# -c t.c -p -t -hread > > You need to pass -mt, and that's all the pthread library from S10 onwards > is part of libc. ok. I pass -mt when compiling and linking. libtool seems to link against libc by default. Btw, i've finally found the sun doc about all that: http://docs.sun.com/app/docs/doc/816-5137/compile-94611?a=view one afternoon to find that :/ thank you for your answers Vincent Torri -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20090819/623efcc4/attachment.html>