To clarify:
g++ does accept <iostream>. But certain h-less headers will give you
trouble without a "namespace std;" in the program globally.
also, you can avoid having an a.out if you specify a -o option. So the
final command will look like this.
You can also optimize using -O# (where # is 0, 1, 2). The higher the
number, the more optimization.
I'm not sure about -s. I can't find it in the man pages.
-Mat
> -----Original Message-----
> From: Kal Amry [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 16:17
> To: [EMAIL PROTECTED]
> Subject: RE: [cobalt-developers] GCC and C++ on my cobalt - cant use
> iostream.h library??
>
>
> Use g++, I believe gcc is a c compiler! Also, the gnu g++
> compiler accepts
> <iostream> without the h although I think it also takes it
> with the h, so
> just a tip for you... Also, you can compile using:
> g++ -s test.cpp "to get a smaller executable"
> the above line will give an a.out exe so to run that, I think
> you need to do
> it explicitly by doing:
> _______________________________________________
> cobalt-developers mailing list
> [EMAIL PROTECTED]
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>
_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers