Development system 2.3.1 bug or what

Aryeh M. Weiss aryeh at eddie.mit.edu
Wed Jun 27 23:48:19 AEST 1990


In article <2135 at polari.UUCP> corwin at 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[].

-- 



More information about the Comp.unix.xenix mailing list