PyRFC icon indicating copy to clipboard operation
PyRFC copied to clipboard

Installation error - cannot convert argument to 'RFC_SERVER_FUNCTION'

Open Aj-Revelino opened this issue 3 years ago • 0 comments

Issue is the same as https://github.com/SAP/PyRFC/issues/242

src/pyrfc/_pyrfc.cpp(21150): error C2664: 'RFC_RC RfcInstallGenericServerFunction(RFC_SERVER_FUNCTION,RFC_FUNC_DESC_CALLBACK,RFC_ERROR_INFO *)': cannot convert argument 1 from 'RFC_RC (__cdecl *)(RFC_CONNECTION_HANDLE,RFC_FUNCTION_HANDLE,RFC_ERROR_INFO *)' to 'RFC_SERVER_FUNCTION' src/pyrfc/_pyrfc.cpp(21150): note: None of the functions with this name in scope match the target type src/pyrfc/_pyrfc.cpp(29687): warning C4018: '<': signed/unsigned mismatch error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit code 2

Python version - 3.8.2 Pyrfc version - pyrfc-2.5.0 OS : Windows 2016 Datacenter (64 Bit) Netweaver RFC SDK - Downloaded the latest version (64 bit) Patch level 10; NW750pip

All prerequisites listed in https://github.com/SAP/PyRFC#windows are met:

  • Installed Visual C++ Redistributable Package for Visual Studio 2013 (64 bit)
  • Installed Microsoft C++ build tools Version 14.0. Activated the build tools from Modify -> individual components -> MSVC v140 -VS 2015 C++ build tools (v14.16)

I tried to clone the repository and ran python setup.py bdist_wheel but I get the same error.

Aj-Revelino avatar Aug 12 '22 05:08 Aj-Revelino