Hi,
I'm trying to build a new dll that includes libmodbus as a static library and not as a dll. The problem is that I cannot compile it because I'm experiencing several linking errors.
Following the step I did:
1) I built the VS libmodbus project changing the Project Defaults -> Configuration Type from .dll to .lib and no error was raised and so I got the modbus.lib
2) In my VS2015 dll project I put modbus.lib in the additional dependencies.
I built my new dll and I got these errors:
So, is it possible to statically link libmodbus in Windows?
I thank you in advance for your help,
Looking forward to hearing from you.
Alessandro Fici