stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.48k stars 1.76k forks source link

Not able to compile libmodbus in Visual Studio 2015 to use its library. #399

Closed ghost closed 7 years ago

ghost commented 7 years ago

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!

stephane commented 7 years ago

You didn't describe a specific issue so could you use the mailing for asking for help, please?