C++|本人小学生一枚,调试时出了问题!

本人小六生一枚

我在编写程序调试时,发现要调试的点没有问题。倒是在一个奇怪的地方出了问题。

//省略
#include <ifstream>
//省略

在使用G++调试时,报了错:

   lib.h:9:10 fatal error: ifstream: No such file or directory
   #include <ifstream>

到底发生了什么??

我先检查了相关代码有没有写错——没写错。
也许是G++版本不够,编译不了C++11的代码——
被修复的问题:

lib.cc:4:9: warning; ISO C++11 requires whitespace after the macro name
省略

也许是文件放错位置了??可是·

//省略
#include <ifstream>
#include <ofstream>
//省略

到底发生了什么??求各位兄弟姐妹们帮个忙吧!!

头文件是这个,ifstream ,ofstream 都是其中定义的类

#include  <fstream>