Re: newbie!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux