现在的位置: 首页 > 综合 > 正文

Ubuntu中 iostream.h: No such file or directory 的解决

2013年02月03日 ⁄ 综合 ⁄ 共 231字 ⁄ 字号 评论关闭

在Ubuntu中使用g++编译一段代码,出现 "iostream.h: No such file or directory"的错误

使用sudo apt-get install build-essential后,发现build-essential已经安装。
下面是出问题的部分源代码:

#include <iostream.h>

....

问题出在<iostream.h>中,将这段代码替换为:

#include <iostream>

using namespace stl;

....

即可解决这个问题。







抱歉!评论已关闭.