Re: gcc not seeing.

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

 



On Thu, Nov 07, 2002 at 11:56:23AM +0100, Mario Torre wrote:
> Il gio, 2002-11-07 alle 08:06, Darrel ha scritto:
> > I have no idea what has changed in gcc 3.2 that is so different I can't compile anything.
> > 
> > --------------
> > #include <iostream.h>
> > 
> > int main()
> > {
> > 	cout << "Hello World\n";
> > 	return 0;
> > }
> > --------------
> Hi!
> 
> I think only some simple typing errors:
> 
> #include <iostream>
> // 	        ^^^
> int main()
> {
>    std::cout << "Hello World\n";
> //  ^^^
>    return 0;
> }
> 
> > [Irv@snail cplusplus]$ gcc helloworld.c -o helloworld
> 			
> [Irv@snail cplusplus]$ g++ helloworld.c -o helloworld
> 		      ^^^^^
					^^^
					Here as well. Should be
.C, .cc, .cpp or .cxx, .cp or .c++.
C++ source should be marked as such by using proper extension.

	Jakub



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux