.exe Generated by Cygwin not running directly from windows

0

I compiled and build source code files using the cygwin and gcc and everything went ok , i got the .exe file when i run the file from cygwin like this :

./file.exe 

it runs without problem

but when i try to run it from windows , at first i got the following :

The code execution cannot proceed because cygwin1.dll was not found

so i download and added the cygwin1.dll to the program directory and then i got the following message :

The application was unable to start correctly (0xc000007b). 

i also tried the 32bit version of cygwin1.dll and i got this :

The procedure entry point uname_x could not be located in the dynamic link library 

so i rolled back to the 64bit version ,but of course still the same problem !

again running it from cygwin worked without problem, but running it from windows not workin , so is there anyway i can run the .exe file in windows without problem !?

Regards

cygwin
asked on Super User Sep 20, 2020 by Colin Jack

1 Answer

0

The CYGWIN environment has a different PATH than the windows one.

  1. Search your drive for that DLL (look under your cygwin install dir first)..
  2. Open a command prompt, add that folder to your path..
  3. Try to launch your app.

Another way would be:

  1. Launch the working version from cygwin
  2. Use the SysInternals Process Explorer to see what DLLs it loaded and from where.

Once you have located your DLL, either copy it to the path of your choosing (in the PATH I would hope).. or add that folder to your PATH environment.

answered on Super User Sep 21, 2020 by Señor CMasMas • edited Sep 22, 2020 by Señor CMasMas

User contributions licensed under CC BY-SA 3.0