VMware配了个ubuntu,首先是设置一下共享文件夹,遇到点问题,不得不说这老哥是真滴牛逼
主机与VMware虚拟机共享文件夹:解决虚拟机找不到共享文件夹问题 - 知乎 (zhihu.com)
配置一下clash,port全部设置为7893
linux中gz文件怎么解压,Linux解压gz文件的命令使用教程及详解-CSDN博客
配置c++开发环境
手把手教你搭建 Linux C/C++ 编程环境 - 知乎 (zhihu.com)
写一个hello world
#include <iostream>
#include <vector>
#include <string>
int main()
{
std::vector<std::string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"};
for (const std::string& word : msg)
{
std::cout << word << " ";
}
std::cout << std::endl;
}
先使用g++手动编译
g++ hello.cpp
输出a.out,调用,成功输出。
使用vscode的build也一样
当项目包含多个c++文件有依赖关系时
Comments NOTHING