I am trying to request input register data from a modbus PLC simulator (slave) using Visual Studio 2015 (master) with C code, in Windows environment.
I downloaded the libmodbus files but I am not able to create the modbus.lib and modbus.dll files when compiled in Visual Studio 2015. Therefore, I cannot use the libmodbus library :(
Do I need to download MinGW to compile?
Also, I did download the inttypes.h and stdint.h files as suggested but I wasn't sure where to include them, so I put them under the src and src/win32 folders.
libmodbus version 3.1.4
Window OS, 64bit
C programming in Visual Studio 2015
Description
I am trying to request input register data from a modbus PLC simulator (slave) using Visual Studio 2015 (master) with C code, in Windows environment.
I downloaded the libmodbus files but I am not able to create the modbus.lib and modbus.dll files when compiled in Visual Studio 2015. Therefore, I cannot use the libmodbus library :(
Do I need to download MinGW to compile? Also, I did download the inttypes.h and stdint.h files as suggested but I wasn't sure where to include them, so I put them under the src and src/win32 folders.
Any help would be greatly appreciated!