VS Code中编辑C++ 报错
添加 头文件 #include
报错
c_cpp_properties.json
中配置一直是这个
"compilerPath": "D:\Tools\mingw64\bin\g++.exe",
https://github.com/taylorconor/tinytetris
代码是GitHub上的开源俄罗斯方块
fatal error: curses.h: No such file or directory
各种搜不到
不报错能运行
确定一下curses.h文件有没有啊,文件在哪个路径下
另外报错的提示是找不到 curse.h,不是curses.h
这个文件在MinGW64\opt\include\ncursesw下面,把这个路径条件到includepath中。或者<>中使用绝对路径
curses.h: No such file or directory = 计算机找不到这个.h文件的意思
解决方式:
添加路径后不爆红了
不出所料运行失败
补充:我是windows系统,这个文件只能在Linux下运行吗?courses.h是专属于Linux的图像工具吗?
感谢各位大佬解答