Page 1 of 1

Does FiveLinux support Serial Communications (RS232)

Posted: Mon Nov 25, 2019 10:23 pm
by bradmaudlin
Hello,

I have been able to compile most of the sample linux prg's OK and have written a few of my own that compile and run OK.
I have a need to do some serial communications (RS232). These are the linking errors I get when trying to compile.


vend@v1:~/fivelinux/samples$ ./build.sh qibixx

compiling...
Harbour 3.2.0dev (r1909261630)
Copyright (c) 1999-2019, https://harbour.github.io/
Compiling 'qibixx.prg'...
Lines 1752, Functions/Procedures 20
Generating C source output to 'qibixx.c'... Done.
compiling C module...
linking...
qibixx.o:(.data.rel+0x970): undefined reference to `HB_FUN_WRITECOMM'
qibixx.o:(.data.rel+0xad0): undefined reference to `HB_FUN_OPENCOMM'
qibixx.o:(.data.rel+0xaf0): undefined reference to `HB_FUN_BUILDCOMMDCB'
qibixx.o:(.data.rel+0xb10): undefined reference to `HB_FUN_GETCOMMERROR'
qibixx.o:(.data.rel+0xb30): undefined reference to `HB_FUN_SETCOMMSTATE'
qibixx.o:(.data.rel+0xc10): undefined reference to `HB_FUN_READCOMM'
qibixx.o:(.data.rel+0xdb0): undefined reference to `HB_FUN_FLUSHCOMM'
qibixx.o:(.data.rel+0x1310): undefined reference to `HB_FUN_CLOSECOMM'
collect2: error: ld returned 1 exit status
done!
./build.sh: line 23: ./qibixx: No such file or directory
vend@v1:~/fivelinux/samples$


Is there a library that needs to be linked?

Do I need the Commercial (Paid) Version?

OR am I using the wrong functions for reading and writing to the comm ports??

Thanks,

Brad

Re: Does FiveLinux support Serial Communications (RS232)

Posted: Tue Nov 26, 2019 8:23 am
by Antonio Linares