Regarding the earlier mail about [xapian-core-1.2.24] /tests/api_replicate.cc
compiled under MSYS/MINGW (g++ 5.3.0).
It seems likely that the error was specific to certain g++ versions.
https://github.com/mxe/mxe/issues/1448
Eric at ERICS-NETBOOK /c/WORK
$ cat test.cpp
#include <stdlib.h>
int setenv(const char *name, const char *value, int overwrite)
{
return _putenv_s(name, value);
}
int main()
{
setenv("a", "b", 1);
return 0;
}
Eric at ERICS-NETBOOK /c/WORK
$
Eric at ERICS-NETBOOK /c/WORK
$ g++ --version
g++.exe (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Eric at ERICS-NETBOOK /c/WORK
$ g++ -o test test.cpp
test.cpp: In function 'int setenv(const char*, const char*, int)':
test.cpp:4:33: error: '_putenv_s' was not declared in this scope
Eric at ERICS-NETBOOK /c/WORK
$
whereas
Eric at Erics-Netbook MINGW32 /c/WORK
$ g++ --version
g++.exe (Rev1, Built by MSYS2 project) 6.1.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Eric at Erics-Netbook MINGW32 /c/WORK
$ g++ -o test test.cpp
Eric at Erics-Netbook MINGW32 /c/WORK
$
--------------------------------------------
On Tue, 12/13/16, Olly Betts <olly at survex.com> wrote:
Subject: Re: testing
To: "Eric Lindblad" <geirfuglaps at yahoo.com>
Cc: xapian-discuss at lists.xapian.org
Date: Tuesday, December 13, 2016, 11:48 PM