This is the mail archive of the gcc@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: g++ 3.1.1 issue


"Dmitry Kostenko" <bis0n@mail.ru> writes:

> I've downloaded & installed gcc 3.1.1 from gcc.gnu.org, it compiled
> OK but I've got a problem: gcc does compile c++ sources but is not
> autoconfigured to find STL include headers.  for example, such
> main.C will compile:
>
> int main()
> {  return 0; }
> 
> and such file won't:
> 
> #include <iostream>
> int main()
> {
>   std::cout << "Hello, World!\n";
>   return 0;
> }
> 
> when I say gcc main.C, it says <iostream> not found, and std is not
> a namespace...

Did you mean `g++ main.C'?

-- 
Ricardo Anguiano             anguiano@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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