This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: newbie!
- From: "Alex J. Dam" <alexjdam at yahoo dot com dot br>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 31 Jan 2004 16:22:29 -0200
- Subject: Re: newbie!
- References: <008f01c3e81e$c1777440$dcc49d40@default>
rurik leffanta scripsit:
> i'm attempting to write my vewy first c++ prog....
>
> in order to perform iostream operations, i have to #include <iostream>
>
> yes? yes. :p (or iostream.h, depending on tutorial..)
>
Yes. C++ programs should #include <iostream>
> however, 'iostream' is not at the top of my include folder. i am using
> mingw 3.1.0-1 (and have successfully compiled example scripts) - the path
> for iostream with this install is include/c++/3.2.3
>
Make sure you're compiling using "g++", not "gcc". This is a common problem.
> i've tried adding the path to the include statement, putting .h at the end
> of iostream..
In my system, g++ looks for them in the right places; I never have to pass the
locations to the compiler.
>
> sheesh! should i copy everything from the subfolders and put it in the main
> folder? what do i have to do here?
> --
> http://home.earthlink.net/~plattermatic
> http://www.panicnow.net/~xoxos
--
Alex J. Dam
"Oh, I got plenty o' nuttin',
an' nuttin's plenty fo' me"
-- Porgy