This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


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

Re: Simple hello world in C++


> 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

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

AltStyle によって変換されたページ (->オリジナル) /