Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Build Fail: chainparams.o Build error: ambiguous overload for 'operator='
i686-w64-mingw32.static-g++ -c -pipe -fno-keep-inline-dllexport -DUSE_SECP256K1 -O2 -std=gnu++11 -frtti -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -Wmaybe-uninitialized -fexceptions -mthreads -DUNICODE -DENABLE_WALLET -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DQT_DISABLE_DEPRECATED_BEFORE=0 -DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT -DUSE_UPNP=1 -DMINIUPNP_STATICLIB -DSTATICLIB -DWIN32 -D_MT -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -Isrc -Isrc/json -Isrc/qt -Isrc/qt/plugins/mrichtexteditor -ID:/deps/miniupnpc -Isrc/leveldb/include -Isrc/leveldb/helpers -ID:/deps/secp256k1/include -ID:/deps/boost_1_55_0 -ID:/deps/db-4.8.30.NC/build_unix -ID:/deps/openssl-1.0.2d/include -ID:/deps/qrencode-3.4.4 -I../../mxe/usr/i686-w64-mingw32.static/qt5/include -I../../mxe/usr/i686-w64-mingw32.static/qt5/include/QtPrintSupport -I../../mxe/usr/i686-w64-mingw32.static/qt5/include/QtWidgets -I../../mxe/usr/i686-w64-mingw32.static/qt5/include/QtGui -I../../mxe/usr/i686-w64-mingw32.static/qt5/include/QtNetwork -I../../mxe/usr/i686-w64-mingw32.static/qt5/include/QtCore -Ibuild -Ibuild -I../../mxe/usr/i686-w64-mingw32.static/qt5/mkspecs/win32-g++ -o build/chainparams.o src/chainparams.cpp
src/chainparams.cpp: In constructor 'CMainParams::CMainParams()':
src/chainparams.cpp:87:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[PUBKEY_ADDRESS] = list_of(83);
^
src/chainparams.cpp:87:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:88:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[SCRIPT_ADDRESS] = list_of(85);
^
src/chainparams.cpp:88:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:89:36: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[SECRET_KEY] = list_of(153);
^
src/chainparams.cpp:89:36: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:90:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x88)(0xB2)(0x1E);
^
src/chainparams.cpp:90:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:91:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x88)(0xAD)(0xE4);
^
src/chainparams.cpp:91:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp: In constructor 'CTestNetParams::CTestNetParams()':
src/chainparams.cpp:140:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[PUBKEY_ADDRESS] = list_of(97);
^
src/chainparams.cpp:140:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:141:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[SCRIPT_ADDRESS] = list_of(196);
^
src/chainparams.cpp:141:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:142:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[SECRET_KEY] = list_of(239);
^
src/chainparams.cpp:142:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:143:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF);
^
src/chainparams.cpp:143:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
src/chainparams.cpp:144:40: error: ambiguous overload for 'operator=' (operand types are 'std::vector<unsigned char>' and 'boost::assign_detail::generic_list<int>')
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94);
^
src/chainparams.cpp:144:40: note: candidates are:
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:69:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/vector.tcc:167:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::
^
In file included from /home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/vector:64:0,
from src/serialize.h:10,
from src/bignum.h:9,
from src/chainparams.h:9,
from src/chainparams.cpp:8:
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:448:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^
/home/ader/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.4/include/c++/bits/stl_vector.h:470:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
operator=(initializer_list<value_type> __l)
^
Makefile.Release:10366: recipe for target 'build/chainparams.o' failed
make: *** [build/chainparams.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment