From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,982cbb3670b4b8c4 X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Problem with C compiler? Date: 1996/08/29 Message-ID: <504f8i$ecg@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 177191449 distribution: world references: <28AUG96.13550198.0011@AACCI.AACC.CC.MD.US> organization: Digital Equipment Corporation reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article <28AUG96.13550198.0011@AACCI.AACC.CC.MD.US>, Scott Kramer writes: >I moved this source to my >AIX 3.2.5 system and It compiled and worked fine. I am at a loss. >Please forgive me if this is a simple question, but it is annoying. > >long *tloc; >time(tloc); You're lucky it worked there. A pointer has to point AT something. A bare pointer could be pointing anywhere. On some system it may be some random place in the virtual address of the process, just some random place or no place. Try something like: long *tloc, clock ; tloc = &clock ; time(tloc) ; Or: long clock ; time(&clock) ; -- Alan Rollow alan@nabeth.cxo.dec.com