繁体   English   中英

在 Windows 10 C++ 中使用 include sys/resource.h 时出错

[英]Error using include sys/resource.h with Windows 10 C++

我一直在 macOS 上使用 VS 代码并切换到 Windows 10,我尝试从我的 mac 运行代码,但它给了我这个错误,我没有使用 mac。 我安装了 LLVM 不确定它是否有帮助。

#Include <sys/resource.h>

我的编译器路径当前设置为:

"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe",

我可以这样使用常用命令 gcc/g++ 吗?

我是 Windows 新手,不确定如何以干净的方式配置东西。 谢谢。

sys/resource.h是一个POSIX头文件,这就是为什么您的系统无法在 Windows 上的任何地方找到它。

如果您仍然想使用它,那么您可以使用虚拟机或在您的系统上安装cygwin

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM