c++ 开发环境基本需要文本编辑器 和 c++ 编译器,前者将编辑人类可读 c++ 源码,后者将源码转换成机器可读的一系列指令
以我本地 mac 环境为例:
文本编辑器: vim
terminal 执行: vim - v

c++ 编译器: GNU
terminal 执行: g++ -v :
g++ -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.1.0
Thread model: posix编译:
terminal : g++ hello.cpp -o hello
本文介绍了在Mac环境中搭建C++开发环境的过程,包括选择文本编辑器Vim及使用GNU的g++编译器。文章详细展示了如何通过终端执行命令来安装和验证这些工具,并给出了具体的编译实例。
7767

被折叠的 条评论
为什么被折叠?



