delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 4 Jan 2010 16:10:06 -0500 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: What dll is necessary to use system()-function |
Message-ID: | <20100104211006.GA13599@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <27019085 DOT post AT talk DOT nabble DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <27019085.post@talk.nabble.com> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
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 Mon, Jan 04, 2010 at 12:48:06PM -0800, Michael Schmid wrote: > >Hi! > >Started to use cygwin, it's great. Now I have a working prog and want it run >on another computer. > >So I moved the exe, and all necessary dlls... But there seem to be one >missing, because the system()-function (http://linux.die.net/man/3/system) >doesn't work... E.g. system(cp ./file1 ./file2). > >Does anybody know which dll I need? Or may the problem be another one? All of the standard libc functions like system() come from cygwin1.dll. Your system wouldn't operate without this dll. It is installed by default. >Is there any way to quickly find out which dll i need for a specific >function to run? Simple example: I included stdio.h and used printf and want >to know which dll I need now (this case is easy, but just if I wouldn't >know...) The standard functions come from cygwin1.dll. Otherwise, you can tell what dlls are used by your program via "ldd yourprogram". Remember if you distribute your program outside of your immediate company you have to adhere to Cygwin's GPL licensing. cgf -- 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 |