On Mon, Sep 17, 2012 at 8:21 PM, Daniel J Sebald <address@hidden
<mailto:address@hidden>> wrote:
On 09/17/2012 05:27 PM, Michael Goffioul wrote:
On Mon, Sep 17, 2012 at 6:14 PM, Philip Nienhuis
<address@hidden <mailto:address@hidden>
<mailto:address@hidden
<mailto:address@hidden>>> wrote:
(MinGW, gcc 4.5.2)
../../octave/libgui/src/__octave-gui.cc: In function 'int
octave_start_gui(int, char**)':
../../octave/libgui/src/__octave-gui.cc:85:29: error:
'setenv' was not
declared in this scope
make[3]: *** [src/src_libgui_src_la-octave-__gui.lo] Error 1
make[3]: Leaving directory
`/home/Philip/octdev/oct-3.7/__libgui'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/Philip/octdev/oct-3.7/__libgui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Philip/octdev/oct-3.7'
make: *** [all] Error 2
FWIW, some googling turned up that MinGW (nor MSVC) doesn't
have
"setenv".
It seems "putenv" is advised.
Suggestions on how to get past this error?
I suppose the GUI code should use octave_env::putenv() instead.
Does that work on your system? If so, submit a patch to the tracker
and I'll try it here on a linux system.
I won't be able to test that soon. But given that octave_putenv is based
on gnulib's putenv, I expect it to work. Anyway, setenv in octave is
working fine.