In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to compile clocked 11 and 14". In daily operation, I believe many people have doubts about how to compile clocked 11 and 14. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about how to compile 11 and 14. Next, please follow the editor to study!
1. How to compile cymbals 11 / 14
When I was learning about cymbals 11, my redhat virtual machine was only in version 4.1.2, and it was only in version 4.7 that it started to support it, so to use it, we first need to upgrade our gallows + compiler to version 4.7 or above, and here I chose version 7.1.0 of GCC.
Note: in a large sense, GCC is a collection of compilers, which can be compiled after getting the source code. If we choose to compile the compiler of cQuery +, we will generate gcc and Gmail +. Here, gcc is a compiler specific to c code, and gcc + is a compiler specific to C++ code. The most significant difference between Gmail + and glossy + is that gcc + invokes the-lstdc++ library, but gcc does not.
1.1g download + upgrade 1.1.1 download gcc wget http://ftp.gnu.org/gnu/gcc/gcc-6.1.0/gcc-7.1.0.tar.bz2tar-jxvf gcc-7.1.0.tar.bz21.1.2 download dependencies used when compiling gcc cd gcc-7.1.0./contrib/download_prerequisites / / this script automatically downloads dependencies, but it takes a long time First go to dinner 1.1.3 generate makefile file and compile and install
Create a separate directory to store the compiled generated files
Mkdir gcc-build-7.1.0cd gcc-build-7.1.0../configure-enable-checking=release-enable-languages=c,c++-disable-multilibmake-j4make install
At this point, you can see that the version is already 7.1.0 by using version +-- version.
1.2 compilation of cymbals 11
Generally speaking, if we want to compile clocked 11, we all need to use glossy +-std=c++11, but according to my test, version 7.1.0 already supports cased std=c++11 11 and 14 by default, so there is no need to specify the option-std=c++11. You can directly use Globe + to compile code that includes clocked 11 or 14. Of course, if you want to know whether a feature belongs to clocked 11 or 14, you can use-std=c++11 and-std=c++14 to tell.
At this point, the study on how to compile 11 and 14 is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.