I have weird errors, I suppose that are related to c++11, I compiled every dependency by hand, using clang.
In the qmake I have stdlib=libc++11
Here are the errors:
In file included from src/qt/transactiontablemodel.cpp:1:
In file included from src/qt/transactiontablemodel.h:4:
In file included from /usr/local/Qt-5.4.0-rc/include/QtCore/QAbstractTableModel:1:
In file included from /usr/local/Qt-5.4.0-rc/include/QtCore/qabstractitemmodel.h:37:
In file included from /usr/local/Qt-5.4.0-rc/include/QtCore/qvariant.h:40:
In file included from /usr/local/Qt-5.4.0-rc/include/QtCore/qmetatype.h:50:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:965:44: error:
no viable conversion from 'iterator' (aka '__tree_iterator') to
'iterator' (aka '__map_iterator')
iterator end() _NOEXCEPT {return __tree_.end();}
^~~~~~~~~~~~~
src/qt/transactiontablemodel.cpp:74:112: note: in instantiation of member function 'std::__1::map CWalletTx, std::__1::less, std::__1::allocator > >::end'
requested here
...for(std::map::iterator it = wallet->mapWallet.begin(); it != wallet->mapWallet.end(); ++it)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:648:29: note:
candidate constructor (the implicit copy constructor) not viable: no known conversion from 'iterator' (aka
'__tree_iterator') to 'const
std::__1::__map_iterator,
std::__1::__tree_node, void *> *, long> > &' for 1st argument
class _LIBCPP_TYPE_VIS_ONLY __map_iterator
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:648:29: note:
candidate constructor (the implicit move constructor) not viable: no known conversion from 'iterator' (aka
'__tree_iterator') to
'std::__1::__map_iterator,
std::__1::__tree_node, void *> *, long> > &&' for 1st argument
class _LIBCPP_TYPE_VIS_ONLY __map_iterator
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:1081:60: error:
no viable conversion from 'iterator' (aka '__tree_iterator') to
'iterator' (aka '__map_iterator')
iterator find(const key_type& __k) {return __tree_.find(__k);}
^~~~~~~~~~~~~~~~~
src/qt/transactiontablemodel.cpp:94:75: note: in instantiation of member function 'std::__1::map std::__1::less, std::__1::allocator > >::find' requested
here
std::map::iterator mi = wallet->mapWallet.find(hash);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:648:29: note:
candidate constructor (the implicit copy constructor) not viable: no known conversion from 'iterator' (aka
'__tree_iterator') to 'const
std::__1::__map_iterator,
std::__1::__tree_node, void *> *, long> > &' for 1st argument
class _LIBCPP_TYPE_VIS_ONLY __map_iterator
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/map:648:29: note:
candidate constructor (the implicit move constructor) not viable: no known conversion from 'iterator' (aka
'__tree_iterator') to
'std::__1::__map_iterator,
std::__1::__tree_node, void *> *, long> > &&' for 1st argument
class _LIBCPP_TYPE_VIS_ONLY __map_iterator
^
make: *** [build/bitcoin.o] Error 1
6 errors generated.
make: *** [build/transactiontablemodel.o] Error 1
4 errors generated.
make: *** [build/addresstablemodel.o] Error 1
4 errors generated.
make: *** [build/bitcoingui.o] Error 1
There happen also more errors like:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:254:9: error:
field has incomplete type 'CWalletTx'
_T2 second;
^
src/net.h:317:35: error: invalid suffix on literal; C++11 requires a space between literal and identifier
[-Wreserved-user-defined-literal]
printf("askfor %s %"PRId64" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("...
I have Xcode 6.1 + Command line tools 6.1 in Osx 10.10.1
Every dep including Qt compiled by hand with clang and static, but I can't fix these errors...
Do you use clang c+11 or llvm, gcc or what? to compile in Osx 10.10.1 with the last Xcode?