I'm tryng to test an open master etherCAT but when compiling the NIC driver I recive the following error:
undefined reference to `socket'
undefined reference to `setsockopt'
undefined reference to `ioctl'
undefined reference to `bind'
undefined reference to `fcntl'
undefined reference to `send'
undefined reference to `recv'
and also
undefined reference to `pthread_mutex_lock'
undefined reference to `pthread_mutex_unlock
are the socket api not present in the library libc,librcx or librcx_netx100? where can I find them? or maybe are there some rcx functions/drivers that can be use in place of the socket api? which one?
Thanks a lot!
Hi Andreas!
I'm trying to use the api mutex, but I receive the error message:
<<undefined reference to `rX_MtxUnLockMutex'>>
I've included the "AP_Mtx.h" file, the other functions (rX_MtxCreateMutex,rX_MtxLockMutex and rX_MtxDeleteMutex) seem to be ok
EDIT: sorry, it was just a problem of blank space
Andreas Jacob
Hilscher Gesellschaft fuer Systemautomation mbH
Hello Ichnos,
I am sorry, but I need to tell you that the rcX does not include any kind of socket API.
I can only help you on your question in regards to the mutex functions.
Please have a look into the header file "AP_Mtx.h". There you will find rX_MtxLockMutex and rX_MtxUnlockMutex.
Regards
AJ