delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/15/11:35:42

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,TW_QL
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: 6hp7xDCswBAZFPiwXTBlX1ARAAZrOcR.nQ--
Message-ID: <4E721B17.5080004@molconn.com>
Date: Thu, 15 Sep 2011 11:34:47 -0400
From: LMH <lmh_users-groups AT molconn DOT com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Firefox/6.0.2 SeaMonkey/2.3.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How do I run a program compiled in cygwin from a program that is running in a Windows CMD shell?
References: <loom DOT 20110915T060405-768 AT post DOT gmane DOT org> <loom DOT 20110915T150817-936 AT post DOT gmane DOT org> <4910244359 DOT 20110915185240 AT mtu-net DOT ru>
In-Reply-To: <4910244359.20110915185240@mtu-net.ru>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

I am a bit confused as to the role of perl here. I have compiled under 
cygwin g++ for a long time now and don't run into problems. Are you 
using the -mno-cygwin flag in your compile rules? I have two processes, 
where one is a child of the the processed that gets launched, but both 
are in c. Maybe it is better to address your issue in the c part of the 
application, possibly create a little c launcher app that will create 
the behavior you need.

Whether you run your c widget from win cmd, bash, call if from perl 
python, etc, shouldn't really make any difference.

Maybe I need to dig into your post a bit more.

LMH


Andrey Repin wrote:
> Greetings, Ted Byers!
>
>> However, when I compile the program using gcc within cygwin (and run it the
>> same way - Activestate perl from a Windows' CMD console, no output is
>> produced, and if I try to run qlt from Windows' CMD, it complains about a
>> missing DLL and dies..
>
> Which DLL? You know, we're net standing behind you, staring at your screen
> over your shoulder.
>
>> So, I found a fix in terms of adding cygwin/bin to the  path.
>
> Fix? Sorry me, but Cygwin installation manager explicitly tell you to do so.
>
>> That lets me run the programs I compile using gcc within cygwin's bash shell
>> in the same way I run programs I compile using MSVC++.
>> The downside is that I was reluctant to make the cygwin programs themselves
>> visible within Windows' CMD shell as I was concerned about the possibility
>> that doing so might break some other Windows applications I use.
>
> It may, now what? Use Cygwin ones as more POSIX-compliant.
>
>
> --
> WBR,
> Andrey Repin (anrdaemon AT freemail DOT ru) 15.09.2011,<18:50>
>
> Sorry for my terrible english...
>
>
> --
> 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

- Raw text -


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