On 4 May 2016 at 14:39, giorgio foga <giorgiof...@hotmail.it> wrote: > #define MODBUS_RTU_RS485 1" nr.35 row ..... > but I'm try to connect via TCP ... no-one macro for RS line is used from my > code...
The .h file is #included and so the compiler will try to parse the code even if it isn't going to be run. You _might_ be able to get things to compile if you take out the #include modbus-rtu.h from /usr/local/include/modbus/modbus.h:283 But better would be to fix the libmodbus installation. I think you might have really messed things up with "(previously I delete modbus folder from /usr/include & /usr/local/include)" -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users