This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newbie!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]