This is the mail archive of the
cygwin
mailing list for the Cygwin project.
porting Unix programs to windows
- From: Wei Le <weiapplele at yahoo dot com dot cn>
- To: cygwin at cygwin dot com
- Date: Sun, 3 Feb 2008 13:15:43 -0800 (PST)
- 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/