#include <cstdio> #include <iostream> #include "unistd.h" using namespace std; int main() { while (true) { cout << "hello linux!" << endl; sleep(1); } return 0; }
开启Linux虚拟机,运行以上代码,弹出链接框,输入地址,用户名和密码,Linux须要安装g++和GDB。
有一些库和函数include以后vs会报错,可是编译能够正常进行。
vs2017持续打开必定时间后,会提示rsync.exe和devenv.exe须要联网,这时容许以后,再看编辑提示,报错消失……linux