Does FiveLinux support RS232 Comm Functions??

Does FiveLinux support RS232 Comm Functions??

Postby bradmaudlin » Tue Nov 26, 2019 2:27 am

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
bradmaudlin
 
Posts: 27
Joined: Fri Jan 11, 2008 9:58 pm
Location: St Joe, MO

Re: Does FiveLinux support RS232 Comm Functions??

Postby Antonio Linares » Tue Nov 26, 2019 8:21 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 92 guests