www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/17/17:45:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-9.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4BA15B54.1080202@redhat.com>
Date: Wed, 17 Mar 2010 16:44:36 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, moonlich AT hotmail DOT de
Subject: Re: g++ compile to use in windows (with only the cygwin1.dll)
References: <SNT121-W4876CDE152D50ABE92A899A22C0 AT phx DOT gbl>
In-Reply-To: <SNT121-W4876CDE152D50ABE92A899A22C0@phx.gbl>
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

--------------enig8E7FE3CD961136565B4692D7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 03/17/2010 04:40 PM, martina leske wrote:
> i can open it in the cygwin window (hello world pops up =3DD)=20
> but if i tryed to open the .exe in windows the error msg came up (no cygw=
in1.dll) after i searched a bit i put it in the dir from my programm

Not a good idea - now you have multiple copies of the dll, which will
cause you grief the moment you update one but not the other.  Rather,
you should update your PATH to include the directory with the original one.

> the next error smg pops up (i searched it in my bin and put it in my dir =
from the programm)
> but that istn waht i want =3D/ i want that the rogramm is usable only wit=
h ONE dll data the cygwin1.dll

Not necessarily going to happen.  'cygcheck your-program.exe' will show
you all the dlls that you depend on, and you may depend on libgcc1 in
addition to cygwin1.dll.  But again, by modifying your PATH to point to
the right directory, all those dependencies should be there.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig8E7FE3CD961136565B4692D7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkuhW1QACgkQ84KuGfSFAYAbSwCfRZHnQr4mPTjaXQ/CloAfwVcS
y+wAoMaRKEvBLZ6lw+0Lav20VlznLHGv
=as1E
-----END PGP SIGNATURE-----

--------------enig8E7FE3CD961136565B4692D7--

- Raw text -


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