On 4 April 2014 10:27, Mateusz Łoskot <[email protected]> wrote:

> On 4 April 2014 11:24, Andrew Grafham <[email protected]> wrote:
> > Hi,
> >
> > I'm not sure if this has been mentioned before (except in passing on the
> > Wiki), but SOCI 3.2.2 compiles OK on MingW (the 32 bit version).
>
> Andy, good to hear.
>
> > I used a pre-compiled version of CMake (cmake-2.8.12.1-win32-x86.zip) and
> > ran it from the MSYS shell that comes with MingW. The only issue was that
> > the compiler objected to std::strtoll and std::strtoull, but replacing
> these
> > with strtoll and strtoull fixed the problems, and I've successfully
> compiled
> > the Oracle, MySQL and ODBC backends using boost.
>
> The problem sounds similar to Cygwin.
> Could you check if this patch fixes this problem?
> https://github.com/SOCI/soci/pull/246
>
> I don't use Cygwin or MinGW myself, so help appreciated.
>
>
It doesn't look like that patch would work, as the problem is in the oracle
backend (standard-into-type.cpp. standard-use-type.cpp and
vector-into-type.cpp). But doing a similar trick in those files worked,
i.e. adding:-


#ifndef __MINGW32__
using std::strtoll;
using std::strtoull;
#endif

Cheers

Andy
------------------------------------------------------------------------------
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to