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:40:58 +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)

Yes it works (and the spelling is -fwritable-strings).



reply via email to

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