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

> On 4 April 2014 15:45, Mateusz Łoskot <[email protected]> wrote:
> > On 4 April 2014 15:31, Andrew Grafham <[email protected]> wrote:
> >> On 4 April 2014 13:34, Vadim Zeitlin <[email protected]> wrote:
> >>> On Fri, 4 Apr 2014 11:39:34 +0100 Andrew Grafham
> >>> <[email protected]> wrote:
> >>>
> >>> AG> It doesn't look like that patch would work, as the problem is in
> the
> >>> oracle
> >>> AG> backend (standard-into-type.cpp. standard-use-type.cpp and
> >>> AG> vector-into-type.cpp). But doing a similar trick in those files
> >>> worked,
> >>> AG> i.e. adding:-
> >>> AG>
> >>> AG> #ifndef __MINGW32__
> >>> AG> using std::strtoll;
> >>> AG> using std::strtoull;
> >>> AG> #endif
> >>>
> >>>  Just a note: whichever fix we end up using, could we please do it in
> >>> soci-platform.h, where we already have a workaround for MSVC, instead
> of
> >>> doing it in several different source files.
> >>>
> >>>  TIA,
> >>> VZ
> >>>
> >>
> >> I was thinking that would be neater too, but we'd have to think of a
> >> different way to fix it, as it's not a good idea to put a "using"
> statement
> >> into a header file.
> >
> > Or, we may flip it:
> >
> > #if defined(__CYGWIN__) || defined(__MINGW32__)
> > namespace std {
> >     using strtoll; // or using __gnu_cxx::strtoll ?
> > }
> > #endif
>
>
> Patches in hotfix/3.2.3 branch
> https://github.com/SOCI/soci/pull/246#issuecomment-39619543
> Testing welcome.
>
>
Hi,

Has something changed about how Boost is picked up in the hotfix branch?
 I'm using the same CMake options which work find in the main branch, but
I'm getting this build error with MingW in the hotfix branch:-

[ 65%] Building CXX object
backends/odbc/CMakeFiles/soci_odbc.dir/session.cpp.ob
j
cd /C/soci/breakfix/soci/src/backends/odbc && /c/MinGW/bin/g++.exe
-DDBUG_OFF
-DHAVE_BOOST=1 -DHAVE_BOOST_DATE_TIME=1 -DHAVE_ODBC=1
-DSOCI_ABI_VERSION=\"3_2\"
 -DSOCI_DLL -fPIC -pedantic -ansi -Wall -Wpointer-arith -Wcast-align
-Wcast-qual
 -Wfloat-equal -Wredundant-decls -Wno-long-long -std=c++98 -g
@CMakeFiles/soci_o
dbc.dir/includes_CXX.rsp   -o CMakeFiles/soci_odbc.dir/session.cpp.obj -c
/C/soc
i/breakfix/soci/src/backends/odbc/session.cpp
c:/soci/breakfix/soci/src/backends/odbc/session.cpp:1:0: warning: -fPIC
ignored
for target (all code is position independent) [enabled by default]
 //
 ^
In file included from C:/soci/breakfix/soci/src/core/statement.h:11:0,
                 from
C:/soci/breakfix/soci/src/core/ref-counted-statement.h:11,

                 from C:/soci/breakfix/soci/src/core/once-temp-type.h:11,
                 from C:/soci/breakfix/soci/src/core/session.h:11,
                 from
c:/soci/breakfix/soci/src/backends/odbc/session.cpp:10:
C:/soci/breakfix/soci/src/core/bind-values.h:13:64: fatal error:
boost/fusion/al
gorithm/iteration/for_each.hpp: No such file or directory
 #       include <boost/fusion/algorithm/iteration/for_each.hpp>
                                                                ^
compilation terminated.
make[2]: *** [backends/odbc/CMakeFiles/soci_odbc.dir/session.cpp.obj] Error
1
make[2]: Leaving directory `/c/soci/breakfix/soci/src'
make[1]: *** [backends/odbc/CMakeFiles/soci_odbc.dir/all] Error 2
make[1]: Leaving directory `/c/soci/breakfix/soci/src'
make: *** [all] Error 2

Cheers

Andy
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to