delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,TW_YG |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4C35720E.9030005@towo.net> |
Date: | Thu, 08 Jul 2010 08:37:02 +0200 |
From: | Thomas Wolff <towo AT towo DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 1.7.5: running in a non cygwin command prompt |
References: | <079E860B59A4CB45B59EB017FF69F4586B776DE79A AT GLDMS99826 DOT goldlnk DOT rootlnka DOT net> |
In-Reply-To: | <079E860B59A4CB45B59EB017FF69F4586B776DE79A@GLDMS99826.goldlnk.rootlnka.net> |
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 |
Am 08.07.2010 03:30, schrieb Shalomov, Inessa A (US SSA): > I am trying to get the system() call working in my driver which I am running in a DOS terminal. For the sake of not porting out all of cygwin libraries and executables, I am trying to narrow down to a set of dll's and exe's required for my driver and only include those in my path. What I have gathered so far with the help of cygcheck is that I will need cyggcc_s-1.dll, cygiconv-2.dll, cygintl-8.dll, cygncurses-9.dll, cygreadline7.dll, cygwin1.dll, and sh.exe since system() executes the given command in a shell. My questions are as follows: > > 1) What .dll's and/or .exe's am I missing to be able to run the driver in a non cygwin command prompt? > 2) Is it possible to run my driver (see below) in a non-cygwin prompt with a reduced set of cygwin dll's and .exe's? > 3) If the system() call doesn't work when used in a non-cygwin environment, is there a windows native system() equivalent call I can use? > ... > My suggestion: * Drop the dependency on sh.exe by using one of the exec() calls rather than system(). * Apply static linking: gcc -static -static-libgcc ..., so you'll only need cygwin1.dll ------ Thomas -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |