Windows MASTER version does not build.
geert.gnucash at kobaltwit.be
Mon Nov 7 12:29:55 EST 2016
On Monday 07 November 2016 07:23:42 John Ralls wrote:
> > On Nov 7, 2016, at 6:29 AM, Robert Fewell <14ubobit at gmail.com>
> > wrote:
> > Hi,
> > Tried to build the latest windows version from master but it would
> > not. The first error I got was that 'stoi' was not declared in this
> > scope at line 1826,1827,1828 in gnc-backend-sql.cpp, changed that
> > to use 'atoi' just to get going but it then failed at line
> > 1271,1277 in gnc-backend-dbi.cpp on the PWARN lines. Commented
> > those out just to get going again but it failed again at line 80 in
> > gnc-dbiproviderimpl.hpp on 'to_string' is not a member of std.
> > At this point I checked out an earlier version to complete my test.
> > Looking at the 'stoi' and 'to_string' errors they seem to be fixed
> > in a later version of ming, I think ming-w64, just wondering if the
> > build environment needs to be newer with all these c++ changes or
> > will that effect other things ?
> I'll have a look at the stoi problem today.
> MinGW should be using gcc-4.9.3. That's what's on Debian Jessie and
> master compiles fine there, so I don't think that it's a C++ support
> That said, MinGW64 seems to have a lot more mind-share recently than
> MinGW so perhaps we should look at it. I've no idea at this point
> whether it can be a "drop-in" replacement or would require
> substantial reworking of the build scripts.
MingW64 is relatively high on my list of when I get time I will work on that. I started to
experiment with it once about a year ago, but ran out of time.
IMO it has the advantage that you can work with prebuilt packages, they use the pacman
package manager and many of gnucash' dependencies are already available prebuilt. A
notable exception then was goffice, which influenced my decision to choose the csv importer
as first module to convert to c++. It's the only module in gnucash that depends on goffice and I
can easily remove this dependency in the c++ rewrite.
So... when I get to finish the importer c++ port, I'll probably focus on Mingw64 again :)
More information about the gnucash-devel