Mixed-Language Programming: Borland C++ and MS FORTRAN (79709)



The information in this article applies to:

  • Microsoft FORTRAN Compiler for MS-DOS 5.0
  • Microsoft FORTRAN Compiler for MS-DOS 5.1

This article was previously published under Q79709

SUMMARY

Mixed-language programming is not possible with Borland C++ version 2.0 and Microsoft FORTRAN versions 5.0 and 5.1. This is not considered a feature and is not supported by Microsoft or Borland.

MORE INFORMATION

The format used by Borland when they generate their object code file is different than the format used by Microsoft languages. Microsoft linkers do not recognize the format of the Borland libraries partially because of the way they include the debugging information and function overhead code.

It is possible to use Borland's linker, TLink, to do the linking but unresolved function error messages are generated from both Microsoft FORTRAN and Borland C++. Using TLink may also result in "Fixup Overflow" errors in data segments because of the differences in the memory models used by both compilers. Borland's large memory model does not correspond exactly to Microsoft's large memory model; therefore, problems may exist in the way data is aligned for the final executable.

Mixed-language programming with non-Microsoft products is not supported by Microsoft.

Modification Type:MajorLast Reviewed:9/30/2003
Keywords:KB79709