FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveLinux / FiveDroid (Android) Does FiveLinux support Serial Communications (RS232)
Posts: 27
Joined: Fri Jan 11, 2008 09:58 PM
Does FiveLinux support Serial Communications (RS232)
Posted: Mon Nov 25, 2019 10:23 PM

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 toHB_FUN_OPENCOMM'
qibixx.o:(.data.rel+0xaf0): undefined reference to HB_FUN_BUILDCOMMDCB' qibixx.o:(.data.rel+0xb10): undefined reference toHB_FUN_GETCOMMERROR'
qibixx.o:(.data.rel+0xb30): undefined reference to HB_FUN_SETCOMMSTATE' qibixx.o:(.data.rel+0xc10): undefined reference toHB_FUN_READCOMM'
qibixx.o:(.data.rel+0xdb0): undefined reference to HB_FUN_FLUSHCOMM' qibixx.o:(.data.rel+0x1310): undefined reference toHB_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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Does FiveLinux support Serial Communications (RS232)
Posted: Tue Nov 26, 2019 08:23 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion