Skip to content

Compile dll under Windows with Visual Studio 2008 Express

ottelo9 edited this page May 30, 2023 · 12 revisions

Visual Studio 2008 Express method:

Steps to built Win32 version of Libmodbus: 0. Get Visual Studio 2008 from http://winfuture.de/downloadvorschalt,2088.html (iso) and mount it or burn it + install!

  1. Download the "libmodbus-master.zip" from "github.com/stephane/libmodbus" and extract the zip file.
  2. Go to the folder libmodbus-master\src\win32 click on "configure.js"
  3. now you got configure.h and the project files in the folder and some extra files.
  4. open solution file in the win32 folder. If you use upper version than 2008 you need to upgrade the project so you have your project opened.
  5. download "msinttypes" from eg. https://code.google.com/p/msinttypes/downloads/list (zip contains stdint.h and inttypes.h)
  6. extract it to D:\include\msvc_std\ OR adjust the path in vs2008 project properties->C/C++->Allgemein-> Includeverzeichnisse!!
  7. now it should be built and you got two files: modbus.lib; modbus.dll
  8. run a test program in test folder.

Ready to use dll:

libmodbus_win32_v3.1.10.zip libmodbus_win32_v3.1.6.zip

Clone this wiki locally