A C program was compiled under Cygwin and run directly under Windows. The following runtime error was observed,
cygwin1.dll not found
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 settingsunder Tasks.
- Choose the
Advancedtab. Click the button
System Variablesfind 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.