Software Archive
Read-only legacy content
17061 Discussions

Fortran/assembly mixed programming

rioux
Beginner
428 Views
I have a fortran program that needs to call an assembly subroutine; this worked using IBM Professional Fortran and Ryan McFarland Fortran;

I did not write the assembly and do not know how it was assembled.

I have dispsub.asm and dispsub.obj files;

I have added the fortran source to the project and added the dispsub.obj file to the project; I have compiled the fortran program without errors;
when I build the exe, I get the following error message:

LINK : error : Segment reference in fixup record
.dispsub.obj : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Error executing link.exe.

how can I fix this?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
428 Views
You can't fix it - you have a 16-bit DOS module that can't be linked to 32-bit Windows code.

Steve
0 Kudos
Reply