Fortran/assembly mixed programming

Fortran/assembly mixed programming

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?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

You can't fix it - you have a 16-bit DOS module that can't be linked to 32-bit Windows code.

Steve

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today