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 20:41:31 -0400

On Mon, Sep 17, 2012 at 8:21 PM, Daniel J Sebald <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@hiddennet>> 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.

Michael.


reply via email to

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