A C program was compiled under Cygwin and run directly under Windows. The following runtime error was observed,
cygwin1.dll not found
SOLUTION
Make sure that the environment variable, PATH, has the directory C:\gygwin\bin which contains the dll, cygwin1.dll.
On Windows Vista, this can be done as follows:
-
From Start menu, click Control Panel. Click System. Click
Advanced system settings
under Tasks. -
Choose the
Advanced
tab. Click the buttonEnvironment Variables
. -
Under
System Variables
find the variable, Path. Click Path to select it. Click the Edit button to edit Path's value. Append;C:\cygwin\bin
(without quotes) to Path's value. Click OK. - Close the dialogs and windows opened for updating Path. Restart the system.