Does FiveLinux support Serial Communications (RS232)

Does FiveLinux support Serial Communications (RS232)

Postby bradmaudlin » 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 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 Serial Communications (RS232)

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

regards, saludos

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


Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 2 guests

cron