From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6fc04b6377416897,start X-Google-Attributes: gidfee84,public From: joern@sima.sintef.no (Jorn Amundsen) Subject: *SOLVED* Problems with aio on v3.2 Date: 1995/08/16 Message-ID: #1/1 X-Deja-AN: 108281681 distribution: world organization: SINTEF newsgroups: comp.unix.osf.osf1 >>>>> "JA" == Jorn Amundsen writes: In article 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/ | | +--------------------------------+------------------------------+