Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Python Compile Error(s) (GCC via MinGW-w64)
From: Dave Abrahams (dave_at_[hidden])
Date: 2010-12-28 22:14:35


At Tue, 28 Dec 2010 19:59:46 +1100,
Joshua Boyce wrote:
>
> Hey all. I'm working on a project which currently only compiles under MSVC.
> I wish to port it to compile under GCC via MinGW-w64 also, however I've hit
> a brick-wall with a slew of compile errors I'm getting when using
> Boost.Python in my project. I'm not quite sure who's "fault" this problem
> is... Mine? Boost? GCC? libstdc++? MinGW-w64? Something else?

Looks like libstdc++ to me. Barring some kind of really odious macro
mischief, from the error, I can say it's certainly not Boost. Try
compiling a file that just includes <algorithm> using the same
command-line being issued below

> c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/include/c++/tr1_impl/cmath:203:11:
> error: '::hypot' has not been declared
>
> "g++" -ftemplate-depth-128 -O0 -fno-inline -w -g -m32 -std=c++0x
> -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_PYTHON_STATIC_LIB
> -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_USE_LIB=1 -DDATE_TIME_INLINE
> -DUNICODE -D_UNICODE -Dnullptr=NULL -I"C:\Python27\Include"
> -I"E:\Code\Boost" -I"Common" -I"Dependencies" -I"Dependencies\BeaEngine"
> -I"Memory" -c -o
> "Scripting\bin\gcc-mingw-4.5.1\debug\address-model-32\link-static\MemSandbox\Main.o"
> "Scripting\MemSandbox\Main.cpp"

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net