Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.c:879:2: error: No reference implementation for getifaddrs available for this platform. #45

Open
coderjing opened this issue Aug 12, 2024 · 0 comments

Comments

@coderjing
Copy link

err: Making all in src
CC glue.lo
CC socket.lo
socket.c:879:2: error: No reference implementation for getifaddrs available for this platform.
879 | #error No reference implementation for getifaddrs available for this platform.
| ^
socket.c:887:6: error: call to undeclared function 'getifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
887 | if (getifaddrs(&ifaddr) != -1) {
| ^
socket.c:936:3: error: call to undeclared function 'freeifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
936 | freeifaddrs(ifaddr);
| ^
socket.c:955:6: error: call to undeclared function 'getifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
955 | if (getifaddrs(&ifaddr) == -1) {
| ^
socket.c:1026:2: error: call to undeclared function 'freeifaddrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1026 | freeifaddrs(ifaddr);
| ^
5 errors generated.

I am communicating between the Android car device and the iOS device through USB. USB is abstracted as TCP, and functions such as socket and address lookup should be used. This method is not implemented in the Android NDK, do I need to implement it myself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant