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!

Program written in 1981 Fortran and needs to run in windows

Status
Not open for further replies.

Gerasimos1986

Vendor
Feb 16, 2009
4
CY
Hi. I am having trouble running a program. This program was written in 1981 and was again revised in 1997


I get this error and i don't know what to do. i use the microsoft developer studio with fortran power station 4.0

Linking...
R005.obj : error LNK2001: unresolved external symbol _GROWHANDLES@4
R005.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
R005.exe - 2 error(s), 0 warning(s)

initially i had a problem with this line. it found an error statement inside this line, between / and 1X118. there was no comma after 1X and i added one. after making modifications it now looks like this:

FORMAT(A,'R005 MWM', 4X, 18A4, 1X, A, 2X, 'BLATT', I4 /
1 1X, 118('*'),/ 1X)

Does anybody know why this GROWHANDLES@4 come up? am i missing a library? i am using windows vista.


Thank you for any help :)

Greetings

Ger

P.S. i don't know if the following info is usefull to you:

The program starts with the statement include 'fsublib.fi'
This library is not part of the fortran power station 4.0, so i downloaded the open watcom compiler and added the directory with fsublib into the program.
 
fsublib.fi is part of the watcom system so you should really be using the watford compiler, linker and libraries instead of Microsoft Powerstation.

Have you tried removing 'fsublib.fi'? Will the program build without it? It may have been put in by someone who wanted to try both compilers. Maybe creating an empty file called fsublib.fi will suffice.
 
i solved the problem i had with the fsublib.fi . the problem ist the linking error that comes up. is anybody familiar with this growhandles@4 error?
 
Gerasimos1986 said:
i solved the problem i had with the fsublib.fi ...
It seems that you haven't solved the problem with fsublib.fi

As you can see e.g. here on page 69
the INTEGER Function GROWHANDLES is a part of the Open Watcom F77 Subprogram Library called FSUBLIB.FI

As your linker said: the GROWHANDLES is unresolved external symbol, i.e. you tried to use elsewhere in your program the function GROWHANDLES, but the library FSUBLIB.FI was not linked with your program.

As xwb said - rather try to use open watcom compiler.
 
As far as I know GROWHANDLES do that:
Code:
The INTEGER function GROWHANDLES allows an application to increase the maximum
number of files that can be opened. It requires one argument of type INTEGER representing
the maximum number of files that can be opened and returns an INTEGER value representing
the actual limit. The actual limit may differ from the specified limit. For example, memory
constraints or system parameters may be such that the request cannot be satisfied.
I suspect that no need in this fuction effect in the new environment. Try to add this function stub (let it does nothing).

May be it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top