This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: cygwin usage on Windows


Hi Joseph,

On Mon, Mar 17, 2014 at 5:45 AM, Joseph E. Maxwell  wrote:
> I have a question that I am sure must have been addressed before, but I
> cannot find it after days of searching. Of course I am a Newbie with cygwin.
>
> I have completed an installation, successfully, I think on an x386 platform
> w/ Win XP SP3 OS.
>
> I can compile a C program from within the cywgin shell (terminal) but cannot
> do so from a windows page.
> Attempting to run the executable from the latter,  generate a terse error
> response, "This application has failed to start because cygwin1.dll was not
> found. Re-installing the application may fix this problem".
>
> Is this the actual mode of performance (executable to be run only from the
> cygwin shell and not from Windos page) or have I lost functionality along
> the way?

Cygwin programs need to be able to load cygwin1.dll
You need to add C:\cygwin\bin to the Windows PATH; then cygwin1.dll
will be found even when running programs from the command prompt.
This is a step you have to perform manually; the installer does not do it.

There are some potential name clashes between Windows programs and
Cygwin programs; e.g. find
If you put C:\cygwin\bin before C:\windows\system32 and type just the
name of the program, you'll get the Cygwin version even from a Windows
prompt (which is what I usually do, because I can't remember using the
Windows version of find). If you put C:\cygwin\bin after
C:\Windows\system32, you'll get the Windows version.

>From a Cygwin shell, you get the Cygwin version by default (unless you
change the path in your bash startup script), because Cygwin does some
magic with the path to get its own bin directory to the front.

Hope this helps,

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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


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