Basic_string Link Error
Contents |
Windows Desktop Development > C++ Standards, Extensions, and Interop Question 0 Sign in to vote I
Undefined Reference To `std::basic_string, Std::allocator >
am getting an issue compiling some sample code for something undefined reference to std::__cxx11 called wxWidgets. It is dealing with linking errors all leading back to basic_string. I am compiling undefined reference to std string operator std string&& on Windows7-64 bit with VS2010. I have posted this question on the wxWidgets forum, game development forums, and the wx widgets mailing group, nobody has been
Undefined Reference To `std::__cxx11::basic_string
able to get back to me and it has been over a week now. I was hoping someone in this forum could identify this kind of linking error, as I think it is a sort of general one. It deals with trying to compile a wxWidgets sample on Windows7-64bit and VS2010.
Undefined Reference To `std::__cxx11::basic_string I have been trying to fix this for several days, and have made posts about it on the wxWidgets forum and emailed their developers list, but nobody seems to know the issue. I am experiencing issues when compiling some of the sample projects provided in 2.9.1 on Windows7 64-bit with VS2010. To give an example, here are some errors and warnings I will receive when compiling the "propgrid" project. I get 826 errors and 1204 warnings. I built the lib's from wx_vc9 using VS2008 Pro. All I did was this. 1) Open wx_vc9 with VS2008, hit "Build All" 2) Open samples.sln, convert all the projects (with whatever default settings there was) to run with VS2010. 3) Attempted to compile "propgrid", was hit with massive errors/warnings. Errors: Error 1205 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(struct std::basic_string,class std::allocator >::_Has_debug_it)" (__imp_??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@U_Has_debug_it@01@@Z) C:\wxWidgets-2.9.1\samples\propgrid\wxbase29ud.lib(ipcbase.obj) Error 1206 error LNK2001: u
here for a quick overview of the
_glibcxx_use_cxx11_abi
site Help Center Detailed answers to any questions you might have Meta undefined reference to `std::ios_base::init::init()' Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business https://social.msdn.microsoft.com/Forums/vstudio/en-US/5823872b-7d78-4f3f-a0d0-1f409746164d/basicstring-linking-errors?forum=vclanguage Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like http://stackoverflow.com/questions/17482596/undefined-reference-to-stdbasic-string you, helping each other. Join them; it only takes a minute: Sign up undefined reference to std::basic_string up vote 3 down vote favorite 2 I'm compiling my project and seeing link problem $ g++ -Wl,-z,now -Wl,-z,relro -pthread -Wl,-z,noexecstack -fPIC -Wl,--threads -Wl,--thread-count=4 -B../../third_party/gold -L. -Wl,-uIsHeapProfilerRunning,-uProfilerStart -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl -Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv -Wl,--icf=none -Wl,-rpath=\$ORIGIN/lib/ -Wl,-rpath-link=lib/ -o cameo -Wl,--start-group obj/cameo/src/runtime/app/cameo.cameo_main.o obj/media/libmedia_sse.a ...(omitted many *.a here) -Wl,--end-group -lX11 -lXcursor -lXrandr -lXrender -lrt -ldl -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lXtst -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lXi -lXcomposite -lasound -lXdamage -lXext -lXfixes -lnss3 -lnssutil3 -lsmime3 -lplds4 -lplc4 -lnspr4 -lgconf-2 -lresolv -ldbus-1 -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -lgcrypt -lz -lpthread -lm -lcrypt -L/lib/x86_64-linux-gnu -lexpat -ludev /usr/includ
here for a quick overview of the http://stackoverflow.com/questions/12920891/std-linker-error-with-apple-llvm-4-1 site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags undefined reference Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up STD linker error with Apple LLVM 4.1 up vote 20 undefined reference to down vote favorite 11 I've got a large static library in C++ with bits of Objective-C originally built for iOS (armv7). I built a OS X (64-bit Intel x86_64) version of it, but as soon as I tried to use it in a OS X app project (targeted to Lion 10.7), tens of linker errors appeared, most of them about standard library symbols. I know how to solve "my" linker problems, but the STD ones copied below are bugging me. "std::basic_filebuf >::is_open() const" "std::basic_stringbuf, std::allocator >::str() const" "std::basic_ios >::widen(char) const" "std::istream& std::istream::_M_extract(double&)" "std::ostream::put(char)" "std::ostream::flush()" "std::ostream& std::ostream::_M_insert(void const*)" "std::ostream& std::ostream::_M_insert(bool)" "std::ostream& std::ostream::_M_insert(double)" "std::ostream& std::ostream::_M_insert(unsigned long)" "std::ostream::operator<<(int)" "std::ostream::operator<<(short)" "std::string::_Rep::_M_destroy(std::allocator const&)" "std::string::_Rep::_S_terminal" "std::string::_Rep::_S_empty_rep_storage" "std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&)" "std::string::append(char const*, unsigned long)" "std::string::append(std::string const&)" "std::string::assign(std::string const&)" "std::string::reserve(unsigned long)" "std::basic_string, std::allocator >::b
I have been trying to fix this for several days, and have made posts about it on the wxWidgets forum and emailed their developers list, but nobody seems to know the issue. I am experiencing issues when compiling some of the sample projects provided in 2.9.1 on Windows7 64-bit with VS2010. To give an example, here are some errors and warnings I will receive when compiling the "propgrid" project. I get 826 errors and 1204 warnings. I built the lib's from wx_vc9 using VS2008 Pro. All I did was this. 1) Open wx_vc9 with VS2008, hit "Build All" 2) Open samples.sln, convert all the projects (with whatever default settings there was) to run with VS2010. 3) Attempted to compile "propgrid", was hit with massive errors/warnings. Errors: Error 1205 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string
here for a quick overview of the
_glibcxx_use_cxx11_abi
site Help Center Detailed answers to any questions you might have Meta undefined reference to `std::ios_base::init::init()' Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business https://social.msdn.microsoft.com/Forums/vstudio/en-US/5823872b-7d78-4f3f-a0d0-1f409746164d/basicstring-linking-errors?forum=vclanguage Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like http://stackoverflow.com/questions/17482596/undefined-reference-to-stdbasic-string you, helping each other. Join them; it only takes a minute: Sign up undefined reference to std::basic_string up vote 3 down vote favorite 2 I'm compiling my project and seeing link problem $ g++ -Wl,-z,now -Wl,-z,relro -pthread -Wl,-z,noexecstack -fPIC -Wl,--threads -Wl,--thread-count=4 -B../../third_party/gold -L. -Wl,-uIsHeapProfilerRunning,-uProfilerStart -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl -Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv -Wl,--icf=none -Wl,-rpath=\$ORIGIN/lib/ -Wl,-rpath-link=lib/ -o cameo -Wl,--start-group obj/cameo/src/runtime/app/cameo.cameo_main.o obj/media/libmedia_sse.a ...(omitted many *.a here) -Wl,--end-group -lX11 -lXcursor -lXrandr -lXrender -lrt -ldl -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lXtst -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lXi -lXcomposite -lasound -lXdamage -lXext -lXfixes -lnss3 -lnssutil3 -lsmime3 -lplds4 -lplc4 -lnspr4 -lgconf-2 -lresolv -ldbus-1 -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -lgcrypt -lz -lpthread -lm -lcrypt -L/lib/x86_64-linux-gnu -lexpat -ludev /usr/includ
here for a quick overview of the http://stackoverflow.com/questions/12920891/std-linker-error-with-apple-llvm-4-1 site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags undefined reference Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up STD linker error with Apple LLVM 4.1 up vote 20 undefined reference to down vote favorite 11 I've got a large static library in C++ with bits of Objective-C originally built for iOS (armv7). I built a OS X (64-bit Intel x86_64) version of it, but as soon as I tried to use it in a OS X app project (targeted to Lion 10.7), tens of linker errors appeared, most of them about standard library symbols. I know how to solve "my" linker problems, but the STD ones copied below are bugging me. "std::basic_filebuf