Open LamerTex opened 1 year ago
Just double click the configure.js configure.h and some files will be generated.
Open modbus-9.sln with visual studio .
you can build modbus.lib and modbus.dll.
On the same computer using the sln file made in this PR the library by itself compile correctly. So these instructions should be fixed or updated.
Yes, I was able to build it in some other way as I've described in the "Expected behavior or suggestion" section, but only after losing a lot of time trying to follow the "official steps" described in src\win32\README.md
If the "official steps" for compiling the library in windows don't work they should be updated, even with just the steps you wrote here (maybe with a little more details). In my case, the "modbus-9.sln" was not working with VisualStudio 2019 and I had to use the changes made in PR #512 (which is still open) to make it build correctly.
libmodbus version
Tried both version 3.1.10 and latest commit in master branch
OS and/or distribution
Windows 10 Home 19045.2251 with Visual Studio 2019
Environment
both x86 and x64 have the same errors
Description
After following the instructions in the README.md file the "Console App" project doesn't build
Actual behavior if applicable
I don't know how to go ahead to make it build correctly.
Expected behavior or suggestion
On the same computer using the sln file made in this PR the library by itself compile correctly. So these instructions should be fixed or updated.
Steps to reproduce the behavior (commands or source code)
Just follow the steps in src\win32\README.md