This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: porting Unix programs to windows
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Sun, 03 Feb 2008 13:20:42 -0800
- Subject: Re: porting Unix programs to windows
- References: <927674.8014.qm@web15804.mail.cnb.yahoo.com>
- Reply-to: cygwin at cygwin dot com
Wei Le wrote:
> I tried to port Unix C programs to Windows VC using
> cygwin. I hope the programs can be compiled and linked
> correctly under VC. However, it does not require that
> the programs run correctly.
>
> As the first step, I tried the compilation. I added
> sys/cygwin.h to the beginning of the unix C program.
> VC compiler reports errors:
You cannot use Cygwin that way. You can't just drop a header in a
directory and expect it to work. To use Cygwin you must use gcc and the
Cygwin runtime all as one unit, you cannot use any other runtime such as
Microsoft's.
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/