Using cygwin headers/libraries in MS compiled programs

Haojun Bao baohaojun@gmail.com
Thu Dec 31 15:33:00 GMT 2009


<Neil.Mowbray@calgacus.com> writes:
> Folks,
>> Apologies for the dumb question and please re-direct if there is a better
> forum.
>> How do I use cygwin *.h and *.dll in MS console programs?
>> If I include <sys/cygwin.h> in a MS program I get many conflicts between
> the cygwin CRT and MS CRT stuff. Is my only options to "port" the headers
> to MS and dynamically load the cygwin functions with LoadLibrary()?
>> What calling conventions do I need for cygwin functions in MS compiled
> code?
>> All I really want is cygwin_conv_path() so that my MS programs can accept
> cygwin paths.

Why not just wright a bash script to invoke your program like:
prog.exe "`cygpath -alw _path_`"
This way, no matter whether is _path_ in Posix or Win32 format, you can
get what you want.
>> Regards, Neil
>>>>> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /