|
Boost Users : |
Subject: [Boost-users] Compilation problem with has_binary_operator.hpp on Mac OSX
From: Tim Burgess (tim_at_[hidden])
Date: 2013-12-20 11:43:31
Hi,
I'm building a framework project using Xcode 4.6 configured to use the Apple
GCC 4.2 compiler (my project also uses wxWidgets, so this compiler is
required). Using Boost 1.55.0 I get:
cd /Users/tim/Developer/RBSpeech
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -x
objective-c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs
-fpascal-strings -O0 -Wreturn-type -Wunused-variable -Wuninitialized
-Wshorten-64-to-32 -DDEBUG=1 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develop
er/SDKs/MacOSX10.8.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2
-fvisibility-inlines-hidden -iquote
/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidkwh
bsxvlwng/Build/Intermediates/RBSpeech.build/Debug/RBSpeech.build/RBSpeech-ge
nerated-files.hmap
-I/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidk
whbsxvlwng/Build/Intermediates/RBSpeech.build/Debug/RBSpeech.build/RBSpeech-
own-target-headers.hmap
-I/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidk
whbsxvlwng/Build/Intermediates/RBSpeech.build/Debug/RBSpeech.build/RBSpeech-
all-target-headers.hmap -iquote
/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidkwh
bsxvlwng/Build/Intermediates/RBSpeech.build/Debug/RBSpeech.build/RBSpeech-pr
oject-headers.hmap
-I/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidk
whbsxvlwng/Build/Products/Debug/include
-I/users/tim/developer/libraries/wxwidgets/include
-I/users/tim/developer/libraries/cryptopp
-I/users/tim/developer/libraries/boost_1_55_0
-I/users/tim/developer/sources/surfacereader
-I/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidk
whbsxvlwng/Build/Intermediates/RBSpeech.build/Debug/RBSpeech.build/DerivedSo
urces/x86_64
-I/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidk
whbsxvlwng/Build/Intermediates/RBSpeech.build/Debug/RBSpeech.build/DerivedSo
urces
-F/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidk
whbsxvlwng/Build/Products/Debug
-I/Users/tim/developer/libraries/wxwidgets/build-debug/lib/wx/include/osx_co
coa-unicode-static-2.9 -I/Users/tim/developer/libraries/wxwidgets/include
-D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -include
/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidkwh
bsxvlwng/Build/Intermediates/PrecompiledHeaders/RBSpeech-Prefix-filshqejewqv
wmcnuphmjzrmapcf/RBSpeech-Prefix.pch -c
/Users/tim/Developer/RBSpeech/../Sources/SurfaceReader/RBSpeech.mm -o
/Users/tim/Library/Developer/Xcode/DerivedData/RBSpeech-gglcnsigefizlfbidkwh
bsxvlwng/Build/Intermediates/RBSpeech.build/Debug/RBSpeech.build/Objects-nor
mal/x86_64/RBSpeech.o
cc1objplus: warning: -Wuninitialized is not supported without -O
In file included from
/users/tim/developer/libraries/boost_1_55_0/boost/type_traits/has_left_shift
.hpp:43,
from
/users/tim/developer/libraries/boost_1_55_0/boost/lexical_cast.hpp:165,
from
/Users/tim/Developer/RBSpeech/../Sources/SurfaceReader/RBStringFuncs.hpp:11,
from
/Users/tim/Developer/RBSpeech/../Sources/SurfaceReader/RBSpeech.h:27,
from
/Users/tim/Developer/RBSpeech/../Sources/SurfaceReader/RBSpeech.mm:4:
/users/tim/developer/libraries/boost_1_55_0/boost/type_traits/detail/has_bin
ary_operator.hpp:155: error: expected unqualified-id before 'do'
The project uses OSX10.8 as its base SDK, but has OSX10.6 as its deployment
target to provide backward compatibility and I made sure that my Boost
libraries specified the 10.6 SDK as a minimum.
Can anybody advise, please?
Best wishes.
Tim Burgess
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