cygwin1.dll not found

  • Post author:
  • Post last modified:August 18, 2024
  • Reading time:2 mins read

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:

  1. From Start menu, click Control Panel. Click System. Click Advanced system settings under Tasks.

  2. Choose the Advanced tab. Click the button Environment Variables.

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

  4. Close the dialogs and windows opened for updating Path. Restart the system.

SEE ALSO

Karunesh Johri

Software developer, working with C and Linux.