So, I think libmodbus-dev is correct, the typedef and function names match.
I installed it, now the file in /usr/include/modbus/modbus.h should
work, and it looks like halcompile definitely uses it when given an
explicit path, since the error message changes.
That directory just has the header file, it looks like the error is that
it can't actually find the compiled definitions of the functions called
out in the header.
Danny
On 4/7/2022 9:01 PM, Danny Miller wrote:
Thanks Andy! Closer... it's in /usr/include/modbus/
I specified that. Now it doesn't fail on a missing type modbus_t, but
rather "undefined reference" to any modbus_write_bit etc functions.
So even though I did get that install for libmodbus to work, it just
has the header file. It's not able to find the definitions in a
compiled file.
More ideas?
Danny
On 4/7/2022 5:23 AM, andy pugh wrote:
On Thu, 7 Apr 2022 at 03:27, Danny Miller <dan...@austin.rr.com> wrote:
And same prob. It's looking for stuff in the libmodbus's modbus.h but
it's not seeing it somehow.
You could try giving it a complete path:
#include "/usr/share/modbus/modbus.h"
(quotes rather than braces, I think, for an explicit path)
Or, maybe
#include <modbus/modbus.h>
As libmodbus installs into a directory.
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users