From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ae6ad2aab5b0a60c X-Google-Attributes: gid1164f8,public From: tom@finwds01.tu-graz.ac.at (Thomas Leitner) Subject: Re: More decc problems on alpha6.1 Date: 1996/05/08 Message-ID: <4mq9cm$ffi@fstgal00.tu-graz.ac.at>#1/1 X-Deja-AN: 153784740 references: <4mo0dp$6ic@explorer.csc.com> organization: Graz University of Technology, Austria newsgroups: comp.sys.dec Cindy, Cynthia Agard (cagard@csc.com) wrote: > This old fortran vax/vms programmer is having problems with decc alpha 6.1 > environment. > > Tell me what is wrong with this?? > I'm skipping over stuff and showing you the meat of my problem. > Hopefully it is easy and you'll see it 1,2,3. > > -------------------- > The following is contained in a single module which blows up whenever > I run it. [...] > suffix_loc = strlen (attrname) - 1; > attrname [suffix_loc]++; /*=====THIS IS WHERE IT EXPLODES ACC VIO */ [...] Not being a dedicated VMS/DECC programmer but a multiplatform programmer, I guess that the compiler puts static char constants in a read-only segment and you can't modify that. Perhaps there's a compiler switch to turn that off. Hope that helps -- Tom -- Tom Leitner, tom@finwds01.tu-graz.ac.at |\ _,,,---,,_ Dept. of Communications zzz. /,`.-'`' -. ;-;;,_. Graz University of Technology |,4- ) )-,_. ,\ ( `'-' Inffeldgasse 12 '---''(_/--' `-'\_) A-8010 Graz / Austria / Europe, Phone: +43-316-873-7455, Fax: +43-316-463-697 WWW home page: http://wiis.tu-graz.ac.at/people/tom.html