Why can't g++ find iostream.h?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to understand how to compile C++ programs from the command line using g++ and (eventually) Clang on Ubuntu. I found a webpage which explains MakeFiles and I am following their directions. http://mrbook.org/tutorials/make/ I downloaded the four example files into their own directory. main.cpp hello.cpp factorial.cpp functions.h I then went ahead and ran their example of how to manually compile without a MakeFile. g ++ main . cpp hello . cpp factorial . cpp - o hello When I ran the command from above, I received the