This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: help b19 cygnus


---Apsmms001@aol.com wrote:
>
> Earnie Boyd 
> 
> Sorry for bothering you. 
> I wonder if you can help me.
> I already compiled my .c program got my executable.
> Question: Why is it that my .exe file only run in the /bin directory.
> 	          What will I add to my code to run it in different
directory.

There is a dependency on the cygwinb19.dll.  In order to put the
executable in a different directory and run it from the MSDOS the PATH
variable must include the path to the cygwinb19.dll in MSDOS format.

IE:

If you have the cygwinb19.dll in C:\BIN then you will need to
set PATH=C:\BIN;%PATH%

Having done this you would be able to execute you .exe from any
directory.
==
-                \\||//
-----------o0O0--Earnie--0O0o------------
--        earnie_boyd@yahoo.com        --
-- http://freeyellow.com/members5/gw32 --
--------------ooo0O--O0ooo---------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]