
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