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:
Advanced system settingsunder Tasks.
Advancedtab. Click the button
Environment Variables.
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.