GCC with Cygwin/Win7: missing syscall.h
GCC with Cygwin/Win7: missing syscall.h
我正在尝试在Windows 7 Cygwin上编译Linux c ++源代码,并收到以下错误:
$ make
getconf: Unrecognized variable `LFS_CFLAGS'
gcc -O3 -Wall -Wextra -g -DVERSION='"v1.1.0"' -c src/main.c -o src/main.o
src/main.c:10:25: schwerwiegender Fehler: sys/syscall.h: No such file or directory
#include <sys/syscall.h>
^
Kompilierung beendet.
Makefile:48: recipe for target 'src/main.o' failed
make: *** [src/main.o] Error 1
我用谷歌搜索了这个,但没有任何成功。有什么想法吗?
syscall.h
是特定于操作系统的,因此在cygwin下,系统调用特定的东西可能会失败,因此不受支持。
#ifdef
下,并编写适当的移植代码以使其在Windows下运行。
相关文章:
- "Missing type specifier - int assumed"无法通过向主函数添加"return 0"来解决
- 由于"error C4430: missing type specifier - int assumed. Note: C++ does not support default-int",我现在无法编
- 如何解决C++中声纳库贝静态代码分析错误"Explicitly define the missing copy constructor, move constructor .."
- luaL_len is missing in Lua 5.1
- 文件存在时的最新检查声明生成输入"is missing"
- Qt5PrintSupportd.dll is missing
- Missing sync_val_compare_and_swap_1
- 使用 dev-c++ 运行我的 GIS 应用程序可以"gdal201.dll is missing"
- Windows Boost 1.64 VS2017 missing Python libraries
- missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES
- CMake build error: Qt5PrintSupportConfig.cmake missing
- 如何修复错误消息,如"argument list for class template is missing"?
- "Missing GL version" 从 glewInit() 使用 EGL?
- cudart64_80.dll is missing
- C++ "argument list for class template "迭代器" is missing"错误
- LLONG_MAX missing for g++ 4.9.4?
- 交叉编译时"DSO missing from command line" 莫斯基托示例
- C++ SysCall asm 未解析的外部
- C++ 另一个标头中的结构函数给出"missing type specifier"
- GCC with Cygwin/Win7: missing syscall.h