X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47A6302A.8766E353@dessent.net> Date: Sun, 03 Feb 2008 13:20:42 -0800 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: porting Unix programs to windows References: <927674 DOT 8014 DOT qm AT web15804 DOT mail DOT cnb DOT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list 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/