libmodbus icon indicating copy to clipboard operation
libmodbus copied to clipboard

Function to get last error with minor VisualStudio improvements

Open hgletthofer opened this issue 5 years ago • 1 comments

Libmodbus on Windows will build by default a shared library (DLL) that is statically linked against VCRedist from the used compiler. This prevents the application from accessing the errno variable.

I added a method 'modbus_get_error' that will allow you to access this value. In addition i updated the VisualStudio solution/project file to have a working 64-bit configuration as well as different build directories.

hgletthofer avatar Jan 29 '20 14:01 hgletthofer

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Hubert Gletthofer. This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email [email protected]
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

cla-bot[bot] avatar Jun 14 '21 14:06 cla-bot[bot]