| delorie.com/archives/browse.cgi | search |
| From: | simonb AT prl DOT research DOT philips DOT com (Simon Blanchard) |
| Subject: | problem running c++ hello world |
| 31 Oct 1996 04:40:13 -0800 : | |
| Sender: | daemon AT cygnus DOT com |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <32788DF5.353C.cygnus.gnu-win32@prl.research.philips.com> |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 3.0 (X11; I; IRIX64 6.2 IP19) |
| Original-To: | gnu-win32 AT cygnus DOT com |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
If I compile this program:
#include <stdlib.h>
#include <stdio.h>
#include <iostream.h>
int
main()
{
printf("Hello World!\n");
cout<<"Hello World!\n";
exit(0);
}
like this:
bash$ g++ -ID:/cygnus/include/g++ hello.cpp
then run it:
bash$ ./a.out
I get:
sh.exe: ./a.out: Not owner
If I try to run it in a DOS type shell I get:
F:\src\c++\hello\a.out is not a valid Windows NT application.
If I comment out the cout c++ism. It works.
Any thoughts?
thanks very much
simonb
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |