Simple hello world in C++
Matthew Smith
matts@bluesguitar.org
Tue Feb 20 20:31:00 GMT 2001
> I'm trying to compile a simple "Hello World" using the latest build tools
> in cygwin, but with the -mno-cygwin option so that the resulting object
> does't require the cygwin1.dll:
>
> #include <iostream.h>
>
> int main(void) {
> std::cout << "Hello!\n";
> return 0;
> }
Not sure if this is related to your problem, but IIRC, if you're using
namespaces, you should be using <iostream>, not <iostream.h>.
cheers,
-Matt
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list