Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: joern@sima.sintef.no (Jorn Amundsen)
Subject: *SOLVED* Problems with aio on v3.2
Date: 1995/08/16	[thread overview]
Message-ID: <JOERN.95Aug16160022@nazgul.sima.sintef.no> (raw)



>>>>> "JA" == Jorn Amundsen <joern@sima.sintef.no> writes:
In article <JOERN.95Aug15172911@nazgul.sima.sintef.no> joern@sima.sintef.no (Jorn Amundsen) writes:


JA> After upgrading our 3000/400 to DEC Unix v.3.2 this simple aio program
JA> below seems not to work anymore. It works without problems on SGI
JA> systems. It bails out before reaching the first executable line of
JA> code with:

JA> 	$ cc  -g -o taio taio.c -laio -lpthreads
JA> 	dbx taio
JA> 	dbx version 3.11.8
JA> 	Type 'help' for help.

Thanks to Digital for a fast reply on this one! Here it is:

Actually, the above works by accident on releases earlier than
3.2. The correct way to compile and link applications using threads is

	$ cc  -g -o taio taio.c -laio -threads

which includes -lpthreads and any thread safe versions of other implicitly
(like libc.a) and explicitly specified libraries.

--joern


--
  +--------------------------------+------------------------------+
  | Joern Amundsen                 | Jorn.Amundsen@SIMa.sintef.no |
  | SINTEF Industrial Mathematics  |     +47-735-92092 (voice)    |
  | 7034 Trondheim, Norway         |     +47-735-92971 (fax)      |
  | http://www.sima.sintef.no/     |                              |
  +--------------------------------+------------------------------+



                 reply	other threads:[~1995-08-16  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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