libstdc++

How can I find libstdc++.so.6?

限于喜欢 提交于 2019-12-24 23:43:58
问题 I'm trying to build Android project on my 64-bit kubuntu linux and encountered the error message: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory. running apt-get install libstdc++6 told me that this library is allready installed on my machine and its up to date. Now I'm trying to find out where it is so I could update my path and tell adb where to look for it. Tried ;/$ find libstdc++6 and which libstdc++6 and they both failed

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file

我的未来我决定 提交于 2019-12-24 13:49:45
问题 I Compiled sample C++ Code using ARM CrossCompiler and generated A.out file in Linux PC. And transfered the A.out file file to ZedBoard. When I try to run the A.out file in Zedboard ,It is showing the following error, error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file Can anyone tell me the solution for the error? 回答1: Install g++ to solve this issue. Open a terminal and install the g++ package: sudo apt-get install g++ 来源: https://stackoverflow

g++ with std::exclusive_scan (c++17)

╄→гoц情女王★ 提交于 2019-12-24 07:18:46
问题 Is std::exclusive_scan implemented with libstdc++ ? I'm trying to use the function but I'm getting compilation error saying std::exclusive_scan is not found. Here is the sample code. With clang compiler I'm able to run the code without stdlib=libc++ option. I've included the correct header file ( <numeric> ) and compiling using std=c++17 flag. 来源: https://stackoverflow.com/questions/55771604/g-with-stdexclusive-scan-c17

g++ with std::exclusive_scan (c++17)

依然范特西╮ 提交于 2019-12-24 07:18:08
问题 Is std::exclusive_scan implemented with libstdc++ ? I'm trying to use the function but I'm getting compilation error saying std::exclusive_scan is not found. Here is the sample code. With clang compiler I'm able to run the code without stdlib=libc++ option. I've included the correct header file ( <numeric> ) and compiling using std=c++17 flag. 来源: https://stackoverflow.com/questions/55771604/g-with-stdexclusive-scan-c17

Error ./vpdetection: /gpfs/apps/x86_64-rhel5/matlab/R2012a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found

守給你的承諾、 提交于 2019-12-24 07:14:11
问题 I am now trying to run some MATLAB code in Linux environment: Linux version is Red Hat Enterprise Linux Server release 5.9 (Tikanga). gcc version is 4.1.2. MALTAB version is R2012b. The statement in MALTAB that causes the problem is: [status, result] = system('./vpdetection lines.tmp lines.out'); I got an error as follows: ./vpdetection: /gpfs/apps/x86_64-rhel5/matlab/R2012a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found I have googled several solutions but they all require

Where can I find the function definition in atomicity.h?

a 夏天 提交于 2019-12-24 05:13:10
问题 atomicity.h is part of c++ stl. In its source file, it declares two functions about atomic operation. Here is the whole source code. Where can I find the definition of these functions. I don't find it in stl source code. #ifndef _GLIBCXX_ATOMICITY_H #define _GLIBCXX_ATOMICITY_H 1 #include <bits/atomic_word.h> namespace __gnu_cxx { _Atomic_word __attribute__ ((__unused__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val); void __attribute__ ((__unused__)) __atomic_add(volatile

Common base class breaks empty base class optimization for tuples

痴心易碎 提交于 2019-12-23 18:12:35
问题 gcc 4.7.1 does empty base class optimization for tuples, which I consider a really useful feature. However, there appears to be an unexpected limit to this: #include <tuple> #include <cstdint> #include <type_traits> class A { }; class B : public A { std::uint32_t v_; }; class C : public A { }; static_assert(sizeof(B) == 4, "A has 32 bits."); static_assert(std::is_empty<C>::value, "B is empty."); static_assert(sizeof(std::tuple<B, C>) == 4, "C should be 32 bits."); In this case, the last

Why does libc++ getline block when reading from pipe, but libstdc++ getline does not?

好久不见. 提交于 2019-12-23 10:06:30
问题 TL;DR A program that uses the libc++ version of the getline function will block when it reads input from a pipe until the pipe's buffer is full. The same is NOT true for the libstdc++ version of the getline function: Here the function immediately reads and returns a line of input as soon as it becomes available. Should I expect this difference in behaviour between libstdc++ and libc++ ? [ EDIT: I am not fishing for an opinion here, I simply don't know enough about pipes nor the difficulties

Issues of running C++11 executable compiled with gcc 4.7 on a computer with an older gcc / glibc / libstdc++

旧城冷巷雨未停 提交于 2019-12-23 03:22:33
问题 I am a newbie to C++ compilation in production environment I wonder if there are any issues in running a C++11 executable compiled with gcc4.7 ( on debian 6 ) on a computer with an older gcc version, an older glibc / libstdc++. Thanks EDIT : I want to add more details to my question ( maybe it's better to open a new question ? ) I need to compile a legacy C++ code with new libs in C++11 on debian 7 ( for gcc 4.7 ) and run the exe on debian 6 on fedora 18 ( for gcc 4.7 ) and run the exe on

C++11 standard libraries in libstdc++ on Mac

浪子不回头ぞ 提交于 2019-12-23 02:02:13
问题 In a Xcode project which I currently work on, I am using C++11 with Apple LLVM 4.2 (clang) compiler, and using libstdc++ as my standard library, because I am using a library (NTL) which was not compiled with libc++ and so I must use libstdc++. When writing the following code: #include <regex> int main() { return 0; } It doesn't compile, by saying: 'regex' file not found And so I can't use any C++11 library with my libstdc++ (Tried <mutex> , <thread> aswell). Another I tried to take is to