This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error building PostgreSQL switch module(ESPGSQLXA.dll)

Hi Team,

I am trying to build postgresql switch module using the below steps and get into the error listed below.

C:\Program Files (x86)\Micro Focus\Enterprise Developer\src\enterpriseserver\xa>build pg

ESPGSQLXA.obj
cbllds00004B24.obj
Creating library ESPGSQLXA.lib and object ESPGSQLXA.exp
ESPGSQLXA.obj : error LNK2001: unresolved external symbol _SQLGetInfo@20
ESPGSQLXA.obj : error LNK2001: unresolved external symbol _SQLSetConnectAttr@16
ESPGSQLXA.obj : error LNK2001: unresolved external symbol _SQLGetDiagRec@32
ESPGSQLXA.obj : error LNK2001: unresolved external symbol _SQLGetConnectAttr@20
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm\odbc32.lib : warning LNK4272: library machine type 'ARM' conflicts with target machine type 'x86'
ESPGSQLXA.dll : fatal error LNK1120: 4 unresolved externals

Error building PostgreSQL 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.

let me know how to fix this issue. 

actually i need the ESPGSSQLXA.dll to configure the XA resources in enterprise server to run COBOL program accessing the postgresql database.

Thank you 

Labels:

Enterprise Developer
  • Verified Answer

    Hello Suresh,

    This line: 
    C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm\odbc32.lib : warning LNK4272: library machine type 'ARM' conflicts with target machine type 'x86'
    Appears to provide clues to the problem.

    Please confirm which Windows SDK is installed, why is it referring to machine type ARM, do you have the Windows SDK for ARM installed instead of the x86 version?.
    Also, before building this switch module, ensure that your LIB environment variable contains the path to the odbc32.lib file, located in a subdirectory under your Windows SDK LIB directory.

  • Hi Kim,

    Thank you for the prompt response on my question

    this helped me to fix the issue.

    actually I pointed the library to C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm . 

    the actually path should be as you said it has to be x86 and not arm which is C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x86

    Thank you again 

    Suresh

  • Hi Suresh,

    That is good news, thank you for your feedback.