running .bat file in cygwin

Wed Jul 11 17:05:00 GMT 2012

Dear Larry,
              When I use mingw terminal, build.bat would create a mask.exe. 
This is the executable file,mask.exe.  If I try the same way in cygwin, it
provides me the following error.
-bash:build.bat command not found.

By the by, my computer is installed both cygwin and mingw.

thanks for your respond.  I am sure there is a lacking in my background in
cygwin somewhere, if you may point that out, so I can seach read the proper


Larry Hall (Cygwin-X) wrote:
> On 7/11/2012 12:26 PM, emon wrote:
>> Dear All,
>>                I am a newbie in cygwin.  However, I have used mingw so
>> far,
>> but it is not supporting fork(), so I need to switch to cygwin.  I have
>> created a build.bat file in my mingw (programming language C):
>> gcc -o mask mask.c -pg -I/c/opencv/build/include  -lopencv_core231
>> -lopencv_highgui231 -lopencv_imgproc231 -L.
>> -L/c/opencv/build/x86/mingw/lib
>> Can anyone suggest me how I can run this .bat file at cygwin or refer me
>> to
>> a site.
> Are you implying that invoking it directly from the Cygwin Terminal
> doesn't
> work for you?  Is 'build.bat' executable?
> -- 
> Larry
> _____________________________________________________________________
> A: Yes.
>  > Q: Are you sure?
>  >> A: Because it reverses the logical flow of conversation.
>  >>> Q: Why is top posting annoying in email?
> --
> Problem reports:
> FAQ:         
> Documentation:
> Unsubscribe info:

View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list