This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: porting Unix programs to windows


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]