[comp.unix.xenix] Development system 2.3.1 bug or what

aryeh@eddie.mit.edu (Aryeh M. Weiss) (06/27/90)

In article <2135@polari.UUCP> corwin@polari.UUCP (Don Glover) writes:
>
> am having a problem with some programs that worked fine when
>compiled with the 2.3 development system but fail when compiled
>under the 2.3.1 development system. The following demostrates
>where the problems are occuring:
>test.c
>const char test[] = {"abcdefg");
                               ^  I assume this is a typo.
> 
>test1.c
>extern char test[];
> 
>main()
>{
>   printf("%s\n",test);
>}
> 
> 
>the above gives a memory fault as it test1.c does not have a 
>vaild address for for the string test.

It works for me under 2.3.1 ... are you sure test.c compiled properly?
Try debugging with adb and see what it says is in test[].

--