Skip to main content

The compile fails with COMP-5 is machine specific format

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

compiler directive set:

       $set p(prexml) o(basic.pp) ENDp

       $set ilpinvoke(cblxmls.dll)

sum-up compiler directive ILPINVOKE ( extracted from MF .NET doc):

Makes the specified unmanaged code available, so that the entry points in the unmanaged code are available to the program being compiled. See the Visual Studio Help topic Calling Unmanaged Code from COBOL Using Platform Invoke Services for more information.

Syntax:

>>-.----.--ILPINVOKE--"unmanaged-dll"------><

    -NO-

Parameters:

unmanaged-dll The name of the .dll containing the unmanaged code that is required

Properties:

Default: NOILPINVOKE

IDE equivalent: Add a reference to the unmanaged .dll to the References folder of the solution

Resolution:

Instead of        $set ilpinvoke(cblxmls.dll)

use                    $set ilpinvoke(cblxmln.dll)

cblxmlS  monothreaded DLL

cblxmlN  multithreaded DLL

Old KB# 5301

0 replies

Be the first to reply!