|
Dear All,
I need to use WiringSerial Library on Orange Pi Zero. We will use a HC-05 module on UART port and get some data over Serial port and run someprogram in C according to values gotten from HC-05.
I installed the WiringOP-Zero and tried to compile WiringOP-Zero serialRead.c example and I got error when compiling
I compiled the code with this command : gcc -o SerialRead serialRead.c -l wiringPi
it gives me error as below
//usr/local/lib/libwiringPi.so : undefined reference to 'pthread_join'
//usr/local/lib/libwiringPi.so : undefined reference to 'pthread_create'
//usr/local/lib/libwiringPi.so : undefined reference to 'pthread_cancel'
collect2: error : ld returned 1 exit status
What can I do?
Thanks
|
|