Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

G77 exe doesn't run

Status
Not open for further replies.

GerritGroot

Technical User
Nov 3, 2006
291
ES
Maybe this is not the right forum for it. But I installed cygwin to compile with g77, but once I run the executable it gives me an error that "cygwin1.dll" is missing. However, this file is perfectly installed, even if I place it in the same directory as my "main.exe" it says it's missing.

Any ideas of what I did wrong during the compilation with g77?

Thanks,

Gerrit
 
Make sure cygwin1.dll is in the same directory as g77.exe
This is for Force but the contents should look something similar to this

14/09/2001 18:59 472,064 as.exe
27/08/2001 17:20 70,656 cpp.exe
20/09/2002 13:14 89,088 cpp0.exe
20/10/2001 00:30 82,944 cygitcl30.dll
20/10/2001 00:30 35,328 cygitk30.dll
20/10/2001 00:30 399,360 cygtcl80.dll
20/10/2001 00:30 637,952 cygtk80.dll
21/01/2002 18:52 768,840 cygwin1.dll
27/08/2001 17:21 1,992,704 f771.exe
29/11/2001 16:13 32,697 ftnchek-br.ini
29/11/2001 16:14 31,347 ftnchek-en.ini
20/02/2002 22:27 300,544 ftnchek.exe
27/08/2001 17:20 72,704 g77.exe
20/10/2001 00:30 1,698,304 gdb.exe
14/09/2001 19:00 484,864 ld.exe
20/10/2001 00:30 204,288 tix4180.dll
 
Yes, cygwin1.dll was in the same directory. It got there when I installed cygwin. However, I got some old versions of cygwin as well in other places that were included in the path, I'll delete those first.
 
Having multiple versions of cygwin1.dll can be a pain. I'm running 5 different versions: cygwin, ssh, gcc, g77 and g95. I gave up trying to just have one version.

What you can do is to have a setpath77.bat command which you only use in the command prompt where you wish to build g77. If you don't run setpath77 then it will revert to your old cygwin.

Say your g77 is installed in C:\f77\bin and the libraries (the .a files) are in C:\f77\lib. setpath77.bat will look something like this
Code:
path C:\F77\bin;%path%
set library_path=C:\F77\lib
You can use 2 cmd prompts: one with the old cygwin and one with the g77 you've built.

Cygwin is as bad as Java when it comes to versions.
 
Finally I uninstalled cygwin as I was going to use it only for g77, I deleted all cygwin1.dll's and all g77.exe's and installed force, which works perfectly with g77

Thanks agian for the tips
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top