octave-maintainers
[Top][All Lists]
Advanced

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

Re: MinGW build error 'setenv' was not declared in this scope'


From: Michael Goffioul
Subject: Re: MinGW build error 'setenv' was not declared in this scope'
Date: Mon, 17 Sep 2012 18:27:27 -0400

On Mon, Sep 17, 2012 at 6:14 PM, Philip Nienhuis <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.

Michael.


reply via email to

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