To Kent: -fwritable-strings in GCC Linux
Posted: Sat Aug 18, 2007 8:38 am
Heya,
in GCC 4.0 for Linux, they've taken out the -fwritable-strings command-line option. In my research, I haven't found any alternative. The documentation says to use a named array (or something like that), or some other method that doesn't require string constants to be treated as non-constant. Where I've found people encountering this error, they've had to install an older version of GCC, such as version 2.95, to use this flag when compiling.
I've run a Linux binary of the HE Hugo Engine on my Linux boxes (primarily used as web servers, but I do some command-line stuff too) before. Today, I was trying to compile from the source code. I used the main Hugo source and the Linux source, and the makefile works fine. I get an HE executable. It works, because run without a parameter I'm told the correct format to use HE with the name of a file. So it runs. But when I supply the name of a file, it immediately segfaults.
Hence, I looked into your note in the "porting" info to use -fwritable-strings, and then my realization that it's no longer supported in GCC.
Any chance that the next version of the Hugo Engine will remove the need for writable strings by doing "whatever it's doing" in a different way?
---- Mike.
in GCC 4.0 for Linux, they've taken out the -fwritable-strings command-line option. In my research, I haven't found any alternative. The documentation says to use a named array (or something like that), or some other method that doesn't require string constants to be treated as non-constant. Where I've found people encountering this error, they've had to install an older version of GCC, such as version 2.95, to use this flag when compiling.
I've run a Linux binary of the HE Hugo Engine on my Linux boxes (primarily used as web servers, but I do some command-line stuff too) before. Today, I was trying to compile from the source code. I used the main Hugo source and the Linux source, and the makefile works fine. I get an HE executable. It works, because run without a parameter I'm told the correct format to use HE with the name of a file. So it runs. But when I supply the name of a file, it immediately segfaults.
Hence, I looked into your note in the "porting" info to use -fwritable-strings, and then my realization that it's no longer supported in GCC.
Any chance that the next version of the Hugo Engine will remove the need for writable strings by doing "whatever it's doing" in a different way?
---- Mike.