# 38_v2_cpp_projs **Repository Path**: linux2014/38_v2_cpp_projs ## Basic Information - **Project Name**: 38_v2_cpp_projs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-02-04 - **Last Updated**: 2024-03-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README --- --- # 38_cpp_projs的补充; ### Centos8安装yum源时候出现的异常问题及解决方案: https://www.jb51.net/os/RedHat/822435.html https://blog.csdn.net/Coin_Collecter/article/details/130071493 https://blog.csdn.net/2302_76941579/article/details/134194230?spm=1001.2101.3001.6650.5&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-5-134194230-blog-130071493.235%5Ev43%5Epc_blog_bottom_relevance_base2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-5-134194230-blog-130071493.235%5Ev43%5Epc_blog_bottom_relevance_base2&utm_relevant_index=8 https://developer.aliyun.com/article/1253202 https://juejin.cn/post/6844903791855157255 --- --- ## graphviz https://www.graphviz.org/ https://graphviz.gitlab.io/download/ ``` ./configure make make install ``` ## valgrind https://sourceware.org/pub/valgrind/ https://valgrind.org/downloads/repository.html https://valgrind.org/downloads/current.html ``` sudo apt-get install -y valgrind kcachegrind ``` https://blog.csdn.net/xhtchina/article/details/121187064 https://blog.csdn.net/itworld123/article/details/122156532 https://zhuanlan.zhihu.com/p/643271982 https://zhuanlan.zhihu.com/p/663837179 valgrind案例: https://blog.csdn.net/Z_Stand/article/details/88960671 https://linuxstyle.blog.csdn.net/article/details/89741965?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-89741965-blog-88960671.235%5Ev43%5Epc_blog_bottom_relevance_base2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-89741965-blog-88960671.235%5Ev43%5Epc_blog_bottom_relevance_base2&utm_relevant_index=4 https://developers.redhat.com/articles/2021/11/01/debug-memory-errors-valgrind-and-gdb# #### 源码安装方法 ``` cd valgrind ./autogen.sh ./configure --prefix= make make install ``` ``` ./autogen.sh && ./configure --prefix=/mnt/d/D/linux_install_dir/valgrind && make -j4 && make install && make clean ``` ``` ./autogen.sh && ./configure --prefix=/home/linux2014/install_dir/valgrind_v3161 && make -j4 && make install && make clean ``` --- ## gcc: https://github.com/gcc-mirror/gcc https://gcc.gnu.org/releases.html https://gcc.gnu.org/ https://gcc.gnu.org/gcc-10/ ### gcc源码安装: https://blog.csdn.net/chuansailang4709/article/details/108513788 --- ## configure配置 https://blog.csdn.net/mayue_web/article/details/103988629 1. 指定头文件路径 CPPFLAGS: (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory 例如: ./configure CPPFLAGS="-I/root/rdma-core/build/include/" 2.指定库文件路径 LDFLAGS: linker flags, e.g. -L if you have libraries in a nonstandard directory 例如: ./configure LDFLAGS="-L/root/rdma-core/build/lib/" 参考: ———————————————— 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 原文链接:https://blog.csdn.net/eidolon_foot/article/details/131223500 --- ### ubuntu下的apt配置文件: /etc/apt --- ### 如何在Ubuntu 18.04上安装GCC/G++编译器 01、首先更新包列表: linuxidc@linuxidc:~/http://www.linuxidc.com$ sudo apt update 02、键入以下命令安装build-essential软件包: linuxidc@linuxidc:~/http://www.linuxidc.com$ sudo apt install build-essential 该命令将安装一堆新包,包括gcc,g ++和make。 03、要验证GCC编译器是否已成功安装,请使用gcc --version命令打印GCC版本: linuxidc@linuxidc:~/http://www.linuxidc.com$ gcc --version Ubuntu 18.04存储库中可用的默认GCC版本是7.4.0: 输出 gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --- ### bazel: https://github.com/bazelbuild/bazel http://681314.com/A/t5jnCWJVbb https://zhuanlan.zhihu.com/p/545697517 https://www.cnblogs.com/linlinsite/p/17935692.html --- ### ### gcc源码解析: https://blog.csdn.net/lidan113lidan/article/details/119942740 https://www.zhihu.com/question/51908169 https://blog.csdn.net/l919898756/article/details/103160501 https://blog.csdn.net/lidan113lidan/article/details/119961994 gcc架构和源码编译: https://zhuanlan.zhihu.com/p/372526494 https://zhuanlan.zhihu.com/p/350129120 ### clang源码解析: https://cloud.tencent.com/developer/article/1811032 ### 自制编译器: https://cszhouy.github.io/blog/14ececb8.html ### 编译原理中的词法分析 https://zhuanlan.zhihu.com/p/129329541 https://zhuanlan.zhihu.com/p/64707571 ### 编译器前端之如何实现基于DFA的词法分析器 https://zhuanlan.zhihu.com/p/409661139 ### gcc、bazel的github: https://github.com/gcc-mirror/gcc/tree/releases/gcc-5.4.0 https://github.com/gcc-mirror/gcc/tree/releases/gcc-4.2.3 https://github.com/gcc-mirror/gcc/tree/releases/gcc-3.1.1 https://github.com/bazelbuild/bazel/tree/5.4.1 https://github.com/bazelbuild/bazel/tree/7.0.1 --- --- gcc源码安装的案例: https://blog.csdn.net/whatday/article/details/122114434 https://blog.csdn.net/qq_31868891/article/details/128838888 https://zhuanlan.zhihu.com/p/668809423 https://developer.aliyun.com/article/90390 https://github.com/gcc-mirror/gcc/tree/releases/gcc-4.8.5 ``` ./contrib/download_prerequisites ./configure --prefix=/mnt/d/D/linux_install_dir/gcc_v485 --enable-languages=c,c++,go --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --without-included-gettext --enable-threads=posix --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --disable-werror --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex && make -j8 && make install && make clean ``` ``` ./configure --prefix=/mnt/d/D/linux_install_dir/gcc_v485 --with-gmp=/mnt/d/D/linux_install_dir/gcc_libs/gmp-6.2.1 --with-mpfr=/mnt/d/D/linux_install_dir/gcc_libs/mpfr-4.1.0 --with-mpc=/mnt/d/D/linux_install_dir/gcc_libs/mpc-1.2.1 --enable-checking=release --enable-bootstrap --enable-languages=c,c++ --disable-multilib --enable-threads=posix --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu && make -j8 && make install && make clean ``` --- ### gcc的源码安装实例: ``` ./configure --prefix=/mnt/d/D/linux_install_dir/gcc_v54 --enable-languages=c,c++,go --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --without-included-gettext --enable-threads=posix --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --disable-werror --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex && make -j8 && make install && make clean ``` --- --- https://github.com/daniel5151/ANESE https://github.com/SWPFlow/C-Project-Based-Tutorials https://github.com/s4dr0t1/project-based-tutorials-in-c https://github.com/smitbarmase/ascii-console-snake-game ### c/cpp小项目 https://zhuanlan.zhihu.com/p/429891130 --- --- --- --- ---