help-gplusplus
[Top][All Lists]
Advanced

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

RE: Varför segmenteringsfel?


From: Vincent Penquerc'h
Subject: RE: Varför segmenteringsfel?
Date: Fri, 13 Jul 2001 14:03:08 +0100

>   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)

-- 
Lyrian 




reply via email to

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