jldoll
February 16th, 2012, 04:57 AM
I'm trying to compile a c++ program with g++. I've found several search results that show how to use -I, but this isn't working for me. My command is g++ -I /usr/include/c++/4.6 /home/john/Ubuntu\ One/MIT\ 6.096/helloWorld.cpp
The error /home/john/Ubuntu One/MIT 6.096/helloWorld.cc:1:24: fatal error: iostream : No such file or directory
The file iostream is in two directories: /usr/include/c++/4.6 and /usr/include/c++/4.6.1
I've tried using both paths with the -I option.
I've also tried moving iostream to several locations suggested to be default search paths in other posts. Removing from those locations when it didn't work.
I noticed when I posted the font changed. I am using -I (capital i).
Any help would be greatly appreciated.
The error /home/john/Ubuntu One/MIT 6.096/helloWorld.cc:1:24: fatal error: iostream : No such file or directory
The file iostream is in two directories: /usr/include/c++/4.6 and /usr/include/c++/4.6.1
I've tried using both paths with the -I option.
I've also tried moving iostream to several locations suggested to be default search paths in other posts. Removing from those locations when it didn't work.
I noticed when I posted the font changed. I am using -I (capital i).
Any help would be greatly appreciated.