From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,982cbb3670b4b8c4,start X-Google-Attributes: gidfee84,public From: Scott Kramer Subject: Problem with C compiler? Date: 1996/08/28 Message-ID: <28AUG96.13550198.0011@AACCI.AACC.CC.MD.US>#1/1 X-Deja-AN: 177046382 sender: usenet@AACCI.AACC.CC.MD.US organization: Anne Arundel Community College Music System newsgroups: comp.unix.osf.osf1 greetings, I am converting some programs from my old s5v4 system to my alphaserver 400. I am not able to compile the same source code on the alpha. I keep getting a segmentation fault when using the time() function. I have looked at the cc documentation over and over and can see no reason why this will not work. 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); Other functions such as srand seem to have a problem with the pointer tloc? Any thoughts are Appreciated! Scott Kramer +++----------------------------------------+++-----------------------+++ | SCOTT A. KRAMER SYSTEMS PROGRAMMER | Email Address: ZSAKSAK@ | | Anne Arundel Community College | AACCI.AACC.CC.MD.US | | 101 College Parkway | | | Arnold Md 21012 | Telephone 410-541-2800 | |------------------------------------------|---------------------------| | VM/ESA 2.2 ESA MODE - VSE/ESA 1.3.6 | MUSIC/SP 4.1 - CICS 2.2 | +++----------------------------------------+++-----------------------+++