Results 1 to 7 of 7
Hello All,
I am new to linux.
When I run the gcc compiler for my c++ program it tells me that the <iostream> file can not be found. When I ...
- 01-12-2008 #1
Where Oh Where did the Header Files Go
Hello All,
I am new to linux.
When I run the gcc compiler for my c++ program it tells me that the <iostream> file can not be found. When I run the compile command using the -v command the compiler tells me what directories it looks in for the "#include <...>" files...basically the compiler is not looking for those files in the correct directory, so gcc does not find the include files and the program doesn't compile. How can I configure gcc to look for the header files in the correct directory. (ie: the -I command only searches for #include "...")
-brahan-
- 01-13-2008 #2Linux Newbie
- Join Date
- Jan 2008
- Location
- UK
- Posts
- 211
Hi, I just thought I would ask. What directory is gcc looking in? The standard location for iostream.h would be /usr/include/c++/4.1.2 in my case.
- 01-13-2008 #3
Use "g++" instead. This invokes the same program that gcc does, but it is configured for C++ instead.
DISTRO=Arch
Registered Linux User #388732
- 01-14-2008 #4
- 01-14-2008 #5
using g++ compiles the program
thanks
-brahan
- 01-14-2008 #6
How do i run the .exe that is outputted by the compiler?
-brahan
- 01-16-2008 #7Just Joined!
- Join Date
- Jan 2008
- Posts
- 14
./filename


Reply With Quote
