libstdc++

Where can I get a copy of the file libstdc++.so.6.0.15 [closed]

旧街凉风 提交于 2019-11-26 07:44:27
问题 I am trying to fix my problem \"GLIBCXX_3.4.15\" not found, which is fairly well documented to fix. But it requires getting the file \"libstdc++.so.6.0.15\" from somewhere. Most of the solutions tell me to get it from the location that I compiled my c++ library from. However, I did not compile it, it came with my Ubuntu installation, and when I do \"locate\" for that file it is not found. So, I would like to just download it from somewhere, but I can\'t find it on the web anywhere. I have

When is it necessary to use use the flag -stdlib=libstdc++?

*爱你&永不变心* 提交于 2019-11-26 07:23:46
问题 When is it necessary to use use the flag -stdlib=libstdc++ for the compiler and linker when compiling with gcc? Does the compiler automatically use libstdc++? I am using gcc4.8.2 on Ubuntu 13.10 and I would like to use the c++11 standard. I already pass -std=c++11 to the compiler. 回答1: On Linux : In general, all commonly available linux distributions will use libstdc++ by default, and all modern versions of GCC come with a libstdc++ that supports C++11. If you want to compile c++11 code here,

Why does passing object reference arguments to thread function fails to compile?

谁都会走 提交于 2019-11-26 02:25:12
问题 I\'ve come to a problem using the new c++11 std::thread interface. I can\'t figure out how to pass a reference to a std::ostream to the function that the thread will execute. Here\'s an example with passing an integer(compile and work as expected under gcc 4.6) : void foo(int &i) { /** do something with i **/ std::cout << i << std::endl; } int k = 10; std::thread t(foo, k); But when I try passing an ostream it does not compile : void foo(std::ostream &os) { /** do something with os **/ os <<

/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15&#39; not found

↘锁芯ラ 提交于 2019-11-26 02:17:30
问题 How can I get GLIBCXX_3.4.15 in Ubuntu? I can\'t run some programs that I\'m compiling. When I do: strings /usr/lib/libstdc++.so.6 | grep GLIBC I get: GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBC_2.2.5 GLIBC_2.3 GLIBC_2.4 GLIBC_2.3.4 GLIBC_2.3.2 GLIBCXX_FORCE_NEW GLIBCXX_DEBUG_MESSAGE_LENGTH Thanks for any help! 回答1: I'm

Is gcc 4.8 or earlier buggy about regular expressions?

◇◆丶佛笑我妖孽 提交于 2019-11-25 23:56:15
问题 I am trying to use std::regex in a C++11 piece of code, but it appears that the support is a bit buggy. An example: #include <regex> #include <iostream> int main (int argc, const char * argv[]) { std::regex r(\"st|mt|tr\"); std::cerr << \"st|mt|tr\" << \" matches st? \" << std::regex_match(\"st\", r) << std::endl; std::cerr << \"st|mt|tr\" << \" matches mt? \" << std::regex_match(\"mt\", r) << std::endl; std::cerr << \"st|mt|tr\" << \" matches tr? \" << std::regex_match(\"tr\", r) << std: