MSVC++, fork() and cygwin.dll

Frederick Jowett frederij@sqlg.co.uk
Thu Feb 20 03:13:00 GMT 1997


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@sqlg.co.uk


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



More information about the Cygwin mailing list