Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: nyu notesfiles V1.1 4/1/84; site ur-univax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rochester!ur-univax!pier From: pier@ur-univax.UUCP Newsgroups: net.micro.pc Subject: Problem with LINK command and PASCAL Message-ID: <1200030@ur-univax.UUCP> Date: Thu, 18-Jul-85 16:11:00 EDT Article-I.D.: ur-univa.1200030 Posted: Thu Jul 18 16:11:00 1985 Date-Received: Sat, 20-Jul-85 17:16:27 EDT Organization: University of Rochester: Computing Center Lines: 37 Nf-ID: #N:ur-univax:1200030:000:1527 Nf-From: ur-univax!pier Jul 18 16:11:00 1985 I am trying to port a program from a VAX to an AT. The program is composed of several modules written in PASCAL and FORTRAN, with the main module in PASCAL. I have been able to compile all modules OK using IBM PASCAL 1.0 and IBM FORTRAN 2.0. The problem occurs at the LINK. I get the following error several hundred (yes indeed) tines: Fixup offset exceeds field width in "name of module".OBJ near "address" I get this error for all modules, every 5 or 10 bytes. Appendix A on error messages in the DOS manual (DOS 3.0) says: an assembler instruction refers to an address with a NEAR attribute instead of a FAR attribute. Since I am not using assembler, it must be something with the compiler. I checked to make sure that the parameters passed to a procedure in a different module are passed VARS and not VAR, so that the segment gets passed along with the offset. Still no luck. I tried to link each module separately. Besides the unresolved externals, I don't get any error except for the main module. So I get that "Fixup offset" error even when I link the main module alone. That main module is the biggest and the PASCAL compiler generates a .OBJ file bigger than 64K. Is that where the problem lies? Is the compiler generating the wrong code? Has anybody experienced this problem? Any ideas of what the problem is and maybe how to fix it? Even if you only guess what it can be, let me know what you think. I badly need help. Pierre Darmon University of ochester {allegra|decvax|seismo}!rochester!ur-univax!pier