delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/11/14:25:48

X-Recipient: archive-cygwin AT delorie DOT com
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
MIME-Version: 1.0
In-Reply-To: <34146666.post@talk.nabble.com>
References: <34146666 DOT post AT talk DOT nabble DOT com>
Date: Wed, 11 Jul 2012 14:25:20 -0400
Message-ID: <CA+sc5mnv_n=_9oE=qgZ5Hy2hz8QkzxLVviqPvkCM3pqObguV5g@mail.gmail.com>
Subject: Re: running .bat file in cygwin
From: Earnie Boyd <earnie AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019