Mixed-Language Programming: Borland C++ and MS FORTRAN

Last reviewed: July 17, 1995
Article ID: Q79709
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 5.0 and 5.1

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.


Additional reference words: kbinf 5.00 5.10
KBCategory: kbprg kb3rdparty
KBSubcategory: FORTLngIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.