51Degrees / Device-Detection

THE Fastest and most Accurate device detection for C / PHP / Perl / Python and Node.js - professionally maintained device data
https://51degrees.com/device-detection
Other
112 stars 46 forks source link

Running Go with Device Detection #27

Closed reoxey closed 6 years ago

reoxey commented 6 years ago

go run project

# command-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: running g++ failed: exit status 1
/tmp/go-link-523840537/000003.o: In function `std_vector_Sl_std_string_Sg__get':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:313: undefined reference to `std::out_of_range::out_of_range(char const*)'
/tmp/go-link-523840537/000003.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000003.o:/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: more undefined references to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' follow
/tmp/go-link-523840537/000003.o: In function `std_vector_Sl_std_string_Sg__set':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:320: undefined reference to `std::out_of_range::out_of_range(char const*)'
/tmp/go-link-523840537/000003.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000003.o: In function `std_map_Sl_std_string_Sc_std_string_Sg__get':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:292: undefined reference to `std::out_of_range::out_of_range(char const*)'
/tmp/go-link-523840537/000003.o: In function `std_map_Sl_std_string_Sc_std_string_Sg(double,...)(long)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:302: undefined reference to `std::out_of_range::out_of_range(char const*)'
/tmp/go-link-523840537/000003.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000003.o: In function `_wrap_delete_VectorString_FiftyOneDegreesTrieV3_0acf7431d65d9469':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:853: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000003.o: In function `_wrap_delete_MapStringString_FiftyOneDegreesTrieV3_0acf7431d65d9469':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:589: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000003.o: In function `_wrap_new_VectorString__SWIG_1_FiftyOneDegreesTrieV3_0acf7431d65d9469':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:632: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000003.o: In function `_wrap_new_Provider__SWIG_0_FiftyOneDegreesTrieV3_0acf7431d65d9469':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:1278: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000003.o: In function `_wrap_new_Provider__SWIG_1_FiftyOneDegreesTrieV3_0acf7431d65d9469':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:1309: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000003.o:/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/51Degrees_go.cxx:1337: more undefined references to `operator delete(void*, unsigned long)' follow
/tmp/go-link-523840537/000003.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)':
/usr/local/include/c++/8.1.0/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
/tmp/go-link-523840537/000003.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
/usr/local/include/c++/8.1.0/bits/basic_string.tcc:219: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
/tmp/go-link-523840537/000004.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1420: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000004.o: In function `Match::~Match()':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Match.cpp:39: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000004.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1420: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::getMatchJson[abi:cxx11](char const*)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:565: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::basic_istream<char, std::char_traits<char> >::basic_istream()':
/usr/local/include/c++/8.1.0/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:101: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()':
/usr/local/include/c++/8.1.0/sstream:732: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:732: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:732: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000005.o: In function `std::basic_istream<char, std::char_traits<char> >::basic_istream()':
/usr/local/include/c++/8.1.0/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:101: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `Provider::initException(e_fiftyoneDegreesDataSetInitStatus, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:122: undefined reference to `std::runtime_error::runtime_error(char const*)'
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:104: undefined reference to `std::runtime_error::runtime_error(char const*)'
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:108: undefined reference to `std::runtime_error::runtime_error(char const*)'
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:112: undefined reference to `std::runtime_error::runtime_error(char const*)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::initException(e_fiftyoneDegreesDataSetInitStatus, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:118: undefined reference to `std::invalid_argument::invalid_argument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:128: undefined reference to `std::runtime_error::runtime_error(char const*)'
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:132: undefined reference to `std::runtime_error::runtime_error(char const*)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000005.o: In function `std::basic_istream<char, std::char_traits<char> >::basic_istream()':
/usr/local/include/c++/8.1.0/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:101: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000005.o: In function `std::basic_istream<char, std::char_traits<char> >::basic_istream()':
/usr/local/include/c++/8.1.0/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:101: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000005.o: In function `std::basic_istream<char, std::char_traits<char> >::basic_istream()':
/usr/local/include/c++/8.1.0/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:101: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()':
/usr/local/include/c++/8.1.0/sstream:732: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:732: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/usr/local/include/c++/8.1.0/sstream:732: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1913: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1347: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000005.o: In function `std::basic_istream<char, std::char_traits<char> >::basic_istream()':
/usr/local/include/c++/8.1.0/istream:607: undefined reference to `VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:705: undefined reference to `vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(std::_Ios_Openmode)':
/usr/local/include/c++/8.1.0/sstream:101: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::str() const':
/usr/local/include/c++/8.1.0/sstream:780: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const'
/tmp/go-link-523840537/000005.o: In function `Provider::Provider(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:758: undefined reference to `std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/go-link-523840537/000005.o: In function `Provider::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:182: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)':
/usr/local/include/c++/8.1.0/bits/basic_string.h:1420: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::getMatchJson(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:594: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::getMatchMap(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:546: undefined reference to `operator delete(void*, unsigned long)'
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:547: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::~Provider()':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:89: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::getMatchWithTolerances(char const*, int, int, int)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:430: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::getDataSetPublishedDate[abi:cxx11]()':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:281: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/tmp/go-link-523840537/000005.o: In function `Provider::initException(e_fiftyoneDegreesDataSetInitStatus, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:101: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/tmp/go-link-523840537/000005.o: In function `Provider::getDataSetFormat[abi:cxx11]()':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:272: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/tmp/go-link-523840537/000005.o: In function `Provider::getDataSetName[abi:cxx11]()':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:263: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/tmp/go-link-523840537/000005.o: In function `Provider::getDataSetNextUpdateDate[abi:cxx11]()':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:292: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()'
/tmp/go-link-523840537/000005.o:/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:742: more undefined references to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()' follow
/tmp/go-link-523840537/000005.o: In function `Provider::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:172: undefined reference to `__cxa_throw_bad_array_new_length'
/tmp/go-link-523840537/000005.o: In function `Provider::getMatchWithTolerances(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, int, int)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:474: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::buildArray(int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >*)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:399: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `Provider::buildArray(fiftyoneDegrees_device_offsets_t*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >*)':
/web/go/src/github.com/reoxey/particle/vendor/Device-Detection/go/src/trie/Provider.cpp:372: undefined reference to `operator delete(void*, unsigned long)'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
/tmp/go-link-523840537/000005.o: In function `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()':
/usr/local/include/c++/8.1.0/sstream:65: undefined reference to `operator delete(void*, unsigned long)'
collect2: error: ld returned 1 exit status

What could be the issue?

os: Centos 7 gcc: 8..1.0 go: go1.10.3 linux/amd64

JoshGrew51D commented 6 years ago

Hi There

Please could you send over the sample code you used to implement the provider and any calls you are making within your project?

JoshGrew51D commented 6 years ago

Just following up to see how you are getting on, are you still experiencing issues?

Any questions just let me know.

JoshGrew51D commented 6 years ago

Hi There

I am going to close the call for the time being as I cannot progress the issue further with the information provided. You can find additional documentation on implementing Go on our website here.

Please do get in touch when you are able to pick this up and I will be happy to re-open.