Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/149.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ gzstream编译错误,没有这样的文件或目录_C++_Include - Fatal编程技术网

C++ gzstream编译错误,没有这样的文件或目录

C++ gzstream编译错误,没有这样的文件或目录,c++,include,C++,Include,我已经下载了gzstream类来完成我的作业。因为我是C++新手,所以我运行了与类一起生成的Mag文件,并生成了GZStudio.O文件。这些都存储在文件夹gzstream中。现在我有了一个main.cpp文件,它包含以下内容 #include "gzstream/gzstream.C" 我得到以下错误 g++:错误:gzstream.C:没有这样的文件或目录 我做错了什么?你的gzstream文件夹的main.cpp文件在哪里?你确定要包含.C文件而不是.h吗?@herohuyongtao它

我已经下载了gzstream类来完成我的作业。因为我是C++新手,所以我运行了与类一起生成的Mag文件,并生成了GZStudio.O文件。这些都存储在文件夹gzstream中。现在我有了一个main.cpp文件,它包含以下内容

#include "gzstream/gzstream.C"
我得到以下错误

g++:错误:gzstream.C:没有这样的文件或目录


我做错了什么?

你的gzstream文件夹的main.cpp文件在哪里?你确定要包含.C文件而不是.h吗?@herohuyongtao它与gzstream位于同一目录中folder@Slyforcegzstream文件夹下有gzstream.h文件吗?@herohuyongtao有