开发者

Compilation fails due to missing file sys/utsname.h

I'm not a programmer in CPP but I'm trying to mess with code and receives the following error

"fatal error C1083: Cannot open include file: 'sys/utsname.h': No such file or directory"

there are libraries that need to download besides the installation of Visual Studio that cont开发者_如何学运维ain the files that I was missing?


<sys/utsname.h> is a POSIX header and does not exist on Windows (at least not in the Windows or Visual C++ SDKs). It sounds a lot like this code you are trying to mess with is not designed to be compiled for Windows. You could try using MinGW or Cygwin (though my installation of MinGW doesn't have that header either). Otherwise, you'll need to modify the code or use a platform that has that header.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜