X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Robert Pendell <shinji+gmane@elite-systems.org>
Subject:  Re: porting Unix programs to windows
Date:  Sun, 03 Feb 2008 17:16:07 -0500
Lines: 51
Message-ID: <fo5efs$ra4$1@ger.gmane.org>
References:  <927674.8014.qm@web15804.mail.cnb.yahoo.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
In-Reply-To: <927674.8014.qm@web15804.mail.cnb.yahoo.com>
X-Antivirus: avast! (VPS 080202-0, 02/02/2008), Outbound message
X-Antivirus-Status: Clean
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wei Le wrote:
| 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
|

Do not mix Cygwin libraries with Visual C++ libraries.  They are not
compatible together.

- --
Robert Pendell
shinji@elite-systems.org

Thawte Web of Trust Notary
CAcert Assurer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHpj0ns1pR2j1qW+sRAiMtAJ47MjdkPXBYobfg0E6PL8PmdbnFrQCfa13O
GGhvcqVPJdmAgtUOge0TuT8=
=I1hB
-----END PGP SIGNATURE-----


--
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/

