delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/09/10:45:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20020209074451.00a9fdb0@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sat, 09 Feb 2002 07:44:59 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: how can I compile my code to run in windows ??
Cc: tourjin AT yahoo DOT com
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g19Fjmq20328

Hello,

You must make it possible for Windows to locate the cygwin1.dll. If your 
binary is in the same directory as cygwin1.dll, the system will find it (so 
apparently the two are not co-located).

Putting the name of your Cygwin bin directory (in Windows format, e.g. 
"D:\cygwin\bin") in your system-wide PATH environment will allow Windows to 
find the DLL. (I can only confirm this under Windows 2000. That suggests it 
would work under NT 4 and XP, too. Whether ME or 98 will work this way, 
too, is something I do not know.)

Alternatively, you could launch your application via a ".bat" file that set 
the PATH before executing your binary.

Lastly, you could put your program in the Cygwin bin directory and launch 
it via a shortcut. That's probably not the best solution, since it mingles 
your binaries with the Cygwin's own. I usually think it best to keep my 
additions to the system (any system) in a place of their own.

Good luck.

Randall Schulz
Mountain View, CA USA


At 22:43 2002-02-08, you wrote:
>When I run a program that is compiled by cygwin in windows by double 
>clicking it without cygwin bash it complaints that there is no cygwin.dll. 
>how can I make it to run on windows??
>
>_____________________________________________________________________
>¸Àº¸±â °­Á¸¦ µè°í ¼ö°­¼Ò°¨À» ÀûÀ¸¸é °æÇ°ÀÌ ¿Í¸£¸£~ - ¾ßÈÄ! ¹è¿òÅÍ
>http://education.yahoo.co.kr/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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