help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Varför segmenteringsfel?


From: Erik Sigra
Subject: Re: Varför segmenteringsfel?
Date: Fri, 13 Jul 2001 17:18:50 +0200

fredagen den 13 juli 2001 15:03 skrev Vincent Penquerc'h:
> >   char * a = "xy";
> >   char * b = a + 1;
>
> "xy" is a constant, which you are trying to change. It is set in a non
> writeable section.
> Compile with -fwriteable-strings (unsure of the exact spelling)

Thanks! I just figured out that it works with char a[] = "xy". But I will 
test -fwriteable-strings. I didn't know there was such an option. Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]