Create Project
- Include the header file in the source code.
Description example :
#include "modbus.h"
- Link with the linker option at compile time.
Description example :
gcc -I /usr/local/include/modbus filename.c -o filename -lmodbus -Wl,-rpath=/usr/local/lib/
For more information, please refer to the sample program source code and Makefile.