Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* *SOLVED* Problems with aio on v3.2
@ 1995-08-16  4:00 Jorn Amundsen
  0 siblings, 0 replies; only message in thread
From: Jorn Amundsen @ 1995-08-16  4:00 UTC (permalink / 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/     |                              |
  +--------------------------------+------------------------------+



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-08-16  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-16  4:00 *SOLVED* Problems with aio on v3.2 Jorn Amundsen

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