Category : libstdc++

I am using Manjaro Linux, Code OSS, Easy C++ project and C/C++ extension and I get this error: Unable to open ‘basic_string.h’: Unable to read file ‘/build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h’ (Error: Unable to resolve non-existing file ‘/build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h’). Does someone have idea for solution? Source: Windows Que..

Read more

libstdc++‘s implementation of pair has the following oddity template<typename, typename> class __pair_base { template<typename T, typename U> friend struct pair; __pair_base() = default; ~__pair_base() = default; __pair_base(const __pair_base&) = default; __pair_base& operator=(const __pair_base&) = delete; }; template<typename T, typename U> struct pair : private __pair_base<T, U> { /* never uses __pair_base */ }; __pair_base is ..

Read more

For example, take the following minimal example: #include <cstdio> #include <stdexcept> int main(int argc, char* argv[]){ #ifdef __GLIBCPP__ std::printf("GLIBCPP: %dn",__GLIBCPP__); #endif #ifdef __GLIBCXX__ std::printf("GLIBCXX: %dn",__GLIBCXX__); #endif throw std::runtime_error("Were are libstdc++.so.6 debug symbols?"); return 0; } When running it inside my gdb, it does not show the debug symbols for libstdc++.so.6: $ g++ -o testmain test.cpp ..

Read more

For example, take the following minimal example: #include <cstdio> #include <stdexcept> int main(int argc, char* argv[]){ #ifdef __GLIBCPP__ std::printf("GLIBCPP: %dn",__GLIBCPP__); #endif #ifdef __GLIBCXX__ std::printf("GLIBCXX: %dn",__GLIBCXX__); #endif throw std::runtime_error("Were are libstdc++.so.6 debug symbols?"); return 0; } When running it inside my gdb, it does not show the debug symbols for libstdc++.so.6: $ g++ -o testmain test.cpp ..

Read more

I’m trying to use the 3rd-party lib, called DocToText, with gcc 4.4.7. I compiled the program with: g++ -I./doctotext/ -L./doctotext/ -Wl,-rpath=./doctotext -ldoctotext -o example test_doctotext.cpp In the beginning, it returned libstdc++.so.6: version GLIBCXX_3.4.15 not found I manually downloaded the newer version, and re-linked, here is the result [[email protected]]~xian# find / -name "libstdc++.so.6" /lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6 [[email protected]]~xian# ..

Read more

Trying to test my program but these errors come up: /lib64/libstdc++.so.6: version `CXXABI_1.3.9′ not found (required by ws) /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21′ not found (required by ws) Here’s what I’m using to compile it (as requested by my college): /usr/local/gcc/9.1.0/bin/g++ -Wall -std=c++17 -g -o ws w2_p2.cpp How can I fix these errors? Source: Windows Que..

Read more

The application I’m working on crashed on the client machine and I have the following callstack from the core dump: #0 SignalKill () at /MyBuildDir/lib/c/kercalls/aarch64/SignalKill.S:8 #1 0x0000000001041d2c in abort () at /MyBuildDir/lib/c/ansi/abort.c:92 #2 0x000000007b1688d0 in __gnu_cxx::__verbose_terminate_handler () at ../../../../../libstdc++-v3/libsupc++/vterminate.cc:95 #3 0x000000007b166400 in __cxxabiv1::__terminate (handler=) at ../../../../../libstdc++-v3/libsupc++/eh_terminate.cc:47 #4 0x000000007b165238 in __cxa_call_terminate ([email protected]=0x109dd5f0) at ../../../../../libstdc++-v3/libsupc++/eh_call.cc:54 #5 0x000000007b165d68 ..

Read more