From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22021 invoked by alias); 11 Jul 2012 18:25:37 -0000 Received: (qmail 22003 invoked by uid 22791); 11 Jul 2012 18:25:35 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_MG X-Spam-Check-By: sourceware.org Received: from mail-yw0-f42.google.com (HELO mail-yw0-f42.google.com) (209.85.213.42) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Jul 2012 18:25:21 +0000 Received: by yhoo21 with SMTP id o21so233636yho.15 for ; Wed, 11 Jul 2012 11:25:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.232.103 with SMTP id tn7mr78702030pbc.86.1342031120572; Wed, 11 Jul 2012 11:25:20 -0700 (PDT) Received: by 10.66.82.6 with HTTP; Wed, 11 Jul 2012 11:25:20 -0700 (PDT) In-Reply-To: <34146666.post@talk.nabble.com> References: <34146666.post@talk.nabble.com> Date: Wed, 11 Jul 2012 18:25:00 -0000 Message-ID: Subject: Re: running .bat file in cygwin From: Earnie Boyd To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-07/txt/msg00183.txt.bz2 On Wed, Jul 11, 2012 at 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): > Note, fork requires the cygwin1.dll file. Are you prepared for that? > 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. I've read all the other response, etc. However, if you want to use the .bat file you can do cmd /c build.bat take care that your PATH has all you need and note that /posix/paths don't 't work with MinGW gcc. But since you need fork() you'll need to use the Cygwin GCC anyway. -- Earnie -- https://sites.google.com/site/earnieboyd -- 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