-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Compile dll under Windows with Visual Studio 2008 Express
ottelo edited this page Sep 20, 2023
·
12 revisions
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!
- Download the "libmodbus-master.zip" from "github.com/stephane/libmodbus" and extract the zip file.
- Go to the folder libmodbus-master\src\win32 click on "configure.js"
- now you got configure.h and the project files in the folder and some extra files.
- 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.
- download "msinttypes" from eg. https://code.google.com/p/msinttypes/downloads/list (zip contains stdint.h and inttypes.h)
- extract it to D:\include\msvc_std\ OR adjust the path in vs2008 project properties->C/C++->Allgemein-> Includeverzeichnisse!!
- now it should be built and you got two files: modbus.lib; modbus.dll
- run a test program in test folder.