delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Chen Yue" <godsarmycy AT gmail DOT com> |
To: | "'Wei Le'" <weiapplele AT yahoo DOT com DOT cn>, <cygwin AT cygwin DOT com> |
Subject: | RE: porting Unix programs to windows |
Date: | Mon, 4 Feb 2008 22:12:23 +0800 |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook, Build 11.0.5510 |
In-Reply-To: | <927674.8014.qm@web15804.mail.cnb.yahoo.com> |
Message-ID: | <47a71d4f.095c5e0a.4ead.ffffa0ec@mx.google.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
VC and Cygwin are absolutely not compatible. I suggest you to try MINGW which may fulfill your requirement. -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Wei Le Sent: Monday, February 04, 2008 5:16 AM To: cygwin AT cygwin DOT com Subject: porting Unix programs to windows Hello, 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: .. \iquery\iquery.cpp(100) : error C2660: 'printf' : function does not take 1 arguments .. \iquery\iquery.cpp(111) : error C2660: 'printf' : function does not take 1 arguments .. \iquery\iquery.cpp(134) : error C2660: 'printf' : function does not take 3 arguments .. \iquery\iquery.cpp(136) : error C2660: 'memcpy' : function does not take 3 arguments I added a statement "printf();" to the program as a test, the compiler does not complain about that "printf" that do not have any paramters. What can I do to fix those compilation errors? Thanks. Wei -- 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/ -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |