Skip to main content

Building ESODBCXA.dll

  • May 26, 2017
  • 2 replies
  • 0 views

Based on the MicroFocus documentation here - http://documentation.microfocus.com/help/index.jsp?topic=/com.microfocus.eclipse.infocenter.enterprisedeveloper.vs2012/GUID-0C6A8C7F-CDCD-4151-87D9-71199060026F.html&cp=2_2_0_6_0_4_2_1_3

I tried to create dll from esodbcxa.cbl for using it in XA Resources under enterprise server.

But while building it, I'm getting below error. Please share your thoughts on how to fix this.

Building 32-bit switch module...
Micro Focus COBOL
Version 2.3.02178 Copyright (C) Micro Focus 1984-2017. All rights reserved.
* Checking complete with no errors - starting code generation
* Generating ESODBCXA
* Data:          16     Code:       26632     Literals:        6372
Micro Focus COBOL - CBLLINK utility
Version 2.3.2.67 Copyright (C) Micro Focus 1984-2017. All rights reserved.

Microsoft (R) Incremental Linker Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

ESODBCXA.obj
cbllds00002194.obj
LINK : fatal error LNK1181: cannot open input file 'odbc32.lib'

Error building ODBC switch module. Ensure that the Windows SDK LIB
directory is included in the setting of the LIB environment variable, and
that you have WRITE permission to the current directory.

 


#EnterpriseServer
#XAResources
#esodbcxa

2 replies

  • Author
  • Rocketeer
  • 19312 replies
  • June 2, 2017

Based on the MicroFocus documentation here - http://documentation.microfocus.com/help/index.jsp?topic=/com.microfocus.eclipse.infocenter.enterprisedeveloper.vs2012/GUID-0C6A8C7F-CDCD-4151-87D9-71199060026F.html&cp=2_2_0_6_0_4_2_1_3

I tried to create dll from esodbcxa.cbl for using it in XA Resources under enterprise server.

But while building it, I'm getting below error. Please share your thoughts on how to fix this.

Building 32-bit switch module...
Micro Focus COBOL
Version 2.3.02178 Copyright (C) Micro Focus 1984-2017. All rights reserved.
* Checking complete with no errors - starting code generation
* Generating ESODBCXA
* Data:          16     Code:       26632     Literals:        6372
Micro Focus COBOL - CBLLINK utility
Version 2.3.2.67 Copyright (C) Micro Focus 1984-2017. All rights reserved.

Microsoft (R) Incremental Linker Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

ESODBCXA.obj
cbllds00002194.obj
LINK : fatal error LNK1181: cannot open input file 'odbc32.lib'

Error building ODBC switch module. Ensure that the Windows SDK LIB
directory is included in the setting of the LIB environment variable, and
that you have WRITE permission to the current directory.

 


#EnterpriseServer
#XAResources
#esodbcxa

One of the requirements to build the ODBC XA switch module is to have Windows Software Development Kit (SDK) installed.  Below is from our documentation (link)

Build Requirements

To build the ODBC RM switch module, you must have the Windows Software Development Kit (SDK) installed for your version of Windows.

Before building this switch module, ensure that your LIB environment variable contains the path to your Windows SDK LIB directory.

 

For example, if you install Windows SDK 7.1, ODBC32.lib should be included in C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib

Therefore, set the following before building the ODBC switch.

>set LIB=C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib;%LIB%

If you have Windows SDK 8.1 installed,  ODBC32.lib is in c:\\Program Files (x86)\\Windows Kits\\8.0\\Lib\\win8\\um\\x86


  • Author
  • Rocketeer
  • 19312 replies
  • July 20, 2018

Based on the MicroFocus documentation here - http://documentation.microfocus.com/help/index.jsp?topic=/com.microfocus.eclipse.infocenter.enterprisedeveloper.vs2012/GUID-0C6A8C7F-CDCD-4151-87D9-71199060026F.html&cp=2_2_0_6_0_4_2_1_3

I tried to create dll from esodbcxa.cbl for using it in XA Resources under enterprise server.

But while building it, I'm getting below error. Please share your thoughts on how to fix this.

Building 32-bit switch module...
Micro Focus COBOL
Version 2.3.02178 Copyright (C) Micro Focus 1984-2017. All rights reserved.
* Checking complete with no errors - starting code generation
* Generating ESODBCXA
* Data:          16     Code:       26632     Literals:        6372
Micro Focus COBOL - CBLLINK utility
Version 2.3.2.67 Copyright (C) Micro Focus 1984-2017. All rights reserved.

Microsoft (R) Incremental Linker Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

ESODBCXA.obj
cbllds00002194.obj
LINK : fatal error LNK1181: cannot open input file 'odbc32.lib'

Error building ODBC switch module. Ensure that the Windows SDK LIB
directory is included in the setting of the LIB environment variable, and
that you have WRITE permission to the current directory.

 


#EnterpriseServer
#XAResources
#esodbcxa
This is a problem of ODBC ;for resolving this problem you will install sdk 8.1 version i will provide a link https://fixdll.net/msvcp100 which give you access for download your missing dll file.