I have installed libserialport with the instructions provided. Upon installing, I copied the example program from here. When I try to compile that with
gcc example.c
I get the errors:
/tmp/cc8fDDwV.o: In function `main':
example.c:(.text+0x10): undefined reference to `sp_list_ports'
example.c:(.text+0x35): undefined reference to `sp_get_port_name'
example.c:(.text+0x70): undefined reference to `sp_free_port_list'
collect2: error: ld returned 1 exit status
I have installed libserialport with the instructions provided. Upon installing, I copied the example program from here. When I try to compile that with
gcc example.c
I get the errors:Any help with this would be greatly appreciated.