Re: putenv with mingw32

2008-12-09 Thread Sylvain Beucler
On Tue, Dec 09, 2008 at 08:24:09AM +0100, Simon Josefsson wrote: > Maybe you could disable C99 in the gnulib directory? I remember doing so a while ago and getting detection errors. It's commented out in my Makefile.am ;) -- Sylvain

Re: putenv with mingw32

2008-12-08 Thread Simon Josefsson
Sylvain Beucler <[EMAIL PROTECTED]> writes: > On Sun, Dec 07, 2008 at 04:11:34PM -0800, Ben Pfaff wrote: >> Brian Dessent <[EMAIL PROTECTED]> writes: >> >> > MinGW implements access to 'environ' as a macro in stdlib.h, one which >> > gets the environment pointer through a function call. However,

Re: putenv with mingw32

2008-12-08 Thread Sylvain Beucler
On Sun, Dec 07, 2008 at 04:11:34PM -0800, Ben Pfaff wrote: > Brian Dessent <[EMAIL PROTECTED]> writes: > > > MinGW implements access to 'environ' as a macro in stdlib.h, one which > > gets the environment pointer through a function call. However, that > > macro is not enabled if __STRICT_ANSI__ i

Re: putenv with mingw32

2008-12-07 Thread Ben Pfaff
Brian Dessent <[EMAIL PROTECTED]> writes: > MinGW implements access to 'environ' as a macro in stdlib.h, one which > gets the environment pointer through a function call. However, that > macro is not enabled if __STRICT_ANSI__ is set, and -std=c99 sets > __STRICT_ANSI__. So one workaround would

Re: putenv with mingw32

2008-12-07 Thread Brian Dessent
Sylvain Beucler wrote: > I imported module 'putenv'. Did you also add the stdlib module? > /usr/src/t/freedink-1.08.20081207/cross/gnulib/lib/../../../gnulib/lib/putenv.c:107: > undefined reference to `_environ' > /usr/src/t/freedink-1.08.20081207/cross/gnulib/lib/../../../gnulib/lib/putenv.c:1

putenv with mingw32

2008-12-07 Thread Sylvain Beucler
Hello, I imported module 'putenv'. When cross-compiling through mingw32, I get the following errors at link time: i586-mingw32msvc-gcc -g -O2 -Wall -std=c99 -I/usr/local/i586-mingw32msvc/include -I/usr/local/i586-mingw32msvc/lib/libffi-3.0.7/include -I/usr/local/i586-mingw32msvc/include/