> > It's not missing because it's deprecated or something of that effect. It's > missing because ucrtbase.dll doesn't export any symbol named _environ. > > If you build code that reference the _environ variable with headers set to > __MSVCRT_VERSION__ >= 0x1400, "_environ" will expand to (* > __p__environ()). >
I decided to get off my butt and rebuild GCC (in particular the Ada compiler). I am using MSYS2 with MinGW-w64 6.0.0. Downloaded the GCC 8.3.0 source code and unpacked it. Ran configure as follows: CFLAGS="-D__MSVCRT_VERSION__=0x1400" CPPFLAGS="-D__MSVCRT_VERSION__=0x1400" CXXFLAGS="-D__MSVCRT_VERSION__=0x1400" ./configure --prefix=/home/vapkay/gcc-8.3.0 --enable-languages=c,c++,ada --host=x86_64-w64-mingw32 The -D I added is to force the Ada runtime to not contain a reference to __imp__environ, but to use what's above. I must be doing something wrong yet again because I keep running into errors, such as the following .libs/lto-plugin.o:lto-plugin.c:(.text+0x4a): undefined reference to `__stdio_common_vsscanf' So if anyone has any hints as how to best build GCC for MinGE-w64, I would like that guidance. Thanks, Tom _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
