ID: Q22314
4.00 4.00A 4.01 4.10 5.10 MS-DOS kbtool kbprb kberrmsg
The information in this article applies to:
An attempt to link an application fails and the linker generates the following error message:
"Invalid object module"
Specifying the /Tf compiler options switch does not address the problem.
The most likely cause is using an incorrect version of the linker.
Use the version of the linker included with the FORTRAN version installed on your machine. Perform the procedure below to determine which linker is currently in use.
To determine the version of the linker in use, perform the following six steps:
1. At the MS-DOS prompt, set the current directory to the directory in
which you build your applications.
2. Enter the command LINK and press ENTER.
3. Note the version number in the linker copyright message.
4. Set the current directory to the directory in which you have installed
FORTRAN.
5. Enter the command LINK and press ENTER.
6. Note the version number in the linker copyright message.
If the two linker version numbers do not match, the linker used to build your application is not the linker included with FORTRAN. The most likely causes for this situation are as follows:
Last Reviewed: April 30, 1998