delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/17/20:17:44

From: cascoscuro AT redestb DOT es (Jorge Fernandez Suarez)
Subject: newbie
17 Jan 1997 20:17:44 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <32DF9EBA.11FE.cygnus.gnu-win32@redestb.es>
Reply-To: cascoscuro AT redestb DOT es
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (Win95; I)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hello, I'm newbie with this compiler, always work with djgpp for DOS,
but
after take a look to the gnu-win32 compiler, I have decided to start
with
it, I've install it and try this little program:

# include <stdio.h>
# include <conio.h>
# include <unistd.h>

void main() {
  int pid;
  printf("Hello gnu-win32\n");

  pid= fork();

  if( pid>0 )     printf("Father\n");
  else if( !pid ) printf("Son\n");
  else            printf("Error\n");

  getch();
}

.... and It fails at the fork sentence...
I think that maybe I've not do a good installation on my computer (I'm
newbie to the unix too)

well... I tell you how i do it to compile the program... i think it's
strange...

	I load the 'bash.exe' file
	I write "gcc a.cc"
	I exit from 'bash'
	I run 'a.exe'

żAny ideas?   ... the faq I got don't explain the use of the compiler...
r:-?

thanx
	Jorge
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019