Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: hopfner@lpr.e-technik.tu-muenchen.de (Thomas Hopfner)
Subject: Re: Q: OSF1 -lpthreads -> core - why ?
Date: 1996/04/03	[thread overview]
Message-ID: <hopfner.828512679@lpr.e-technik.tu-muenchen.de> (raw)
In-Reply-To: 4jsm22$18u6@news.missouri.edu

Hi there,

we use OSF/1 V2.0 and Digital UNIX V3.2C here and ``man cc'' states:

-threads
   Tell the linker to use the threadsafe version of libc, and - if it
   exists - the threadsafe version of any library specified with the -l
   flag, when linking programs.  This flag also tells the linker to
   include libpthreads and its support libraries when linking with a pro-
   gram.  Note that when you use this flag, it should appear last on the
   command line.

This works well for me.

CU, Tom.

c632692@cclabs.missouri.edu (Vepa V Sirish) writes:
>Yury July (july@Gemini.relcom.EU.net) wrote:
>: Here's my stupid program:
>:  
>:  main(){
>:    printf("hello\n");   
>:  }
>:     
>: Should work, isn't it ?
>: However, when linked with -lpthreads it coredumps!

[...]

>cc hello.c -Dalpha  -D_SHARED_LIBRARIES -D_REENTRANT -w -ldce -lpthreads 
>-lc_r - lmach -lm
[...]
-- 
--
http://www.lpr.e-technik.tu-muenchen.de/~hopfner/



      reply	other threads:[~1996-04-03  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-02  5:00 Q: OSF1 -lpthreads -> core - why ? Yury July
1996-04-03  5:00 ` Vepa V Sirish
1996-04-03  5:00   ` Thomas Hopfner [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox