Saturday, 24 August 2013

Poco library and mingw-w64 [on hold]

Poco library and mingw-w64 [on hold]

Does anyone have experience of compilation POCO library for the x86_64
architecture for OS Windows with compiler mingw-w64. Thank you in advance
for any help.
Detailed question:
I use mingw-w64 compiler http://mingw-w64.sourceforge.net/ personal build
rubenvb gcc 4.7.4 (link).
From Poco GitHub I download latest stable package poco-1.4.6p1.zip and
unpack package to c:/lib/poco-1.4.6p1.src directory.
Remove compiler flags -fno-cygwin from build/config/MinGW (link)
I start MSys and type:
$ cd /c/lib/poco-1.4.6p1
$ ./configure --prefix=/c/lib/poco-1.4.6p1
Configured for MinGW
$ make -s -j4
...
** Compiling src/NumberFormatter.cpp (debug, static)
src/NumberFormatter.cpp: In static member function 'static void
Poco::NumberFormatter::append(std::string&, const void*)':
src/NumberFormatter.cpp:402:42: error: cast from 'const void*' to
'Poco::UIntPtr {aka long unsigned int}' loses precision
n [-fpermissive]
make[1]: ***
[/c/lib/poco1.4.6p1.src/Foundation/obj/MinGW/ia32/debug_static/NumberFormatter.o]
Error 1
make[1]: *** Waiting for unfinished jobs....
** Compiling src/NumberParser.cpp (debug, static)
make: *** [Foundation-libexec] Error 2

No comments:

Post a Comment