delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/02/20/03:49:22

From: frederij AT sqlg DOT co DOT uk (Frederick Jowett)
Subject: MSVC++, fork() and cygwin.dll
20 Feb 1997 03:49:22 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <c=GB%a=_%p=The_SQL_Group%l=COMMS_S-970220111140Z-749.cygnus.gnu-win32@mailgate.sqlg.co.uk>
Mime-Version: 1.0
Original-To: "'GnuWin Mailing List'" <gnu-win32 AT cygnus DOT com>
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.993.5
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi folks,

I'm porting some code from UNIX (developed on Solaris 2.5) to NT (4.0
workstation), and my biggest bugbear at the moment is the inclusion of
fork() calls within the code. Since the Cygwin library (using beta 17)
provides fork functionality, I've been experimenting with a couple of
very simple C programs to basically demonstrate the forking process.

I can build such a program using gcc, and it seems to work fine.
However, when I try the same with Microsoft Visual C++ 4.2, the code
builds ok, but crashes upon execution of the fork() call (with an
"Access Violation").

Does anyone know how to build such a program with MSVC? (I'm assuming
it's some kind of linking problem).



Thanks,

	Fred Jowett
	The SQL Group
	frederij AT sqlg DOT co DOT uk


-
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