You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id3tag.c:833: error: undefined reference to 'index'
Fix:
In jni/Application.mk, add this:
APP_CFLAGS += -DSTDC_HEADERS
sock.c:686:5: error: 'memcpy' will always overflow - destination buffer has size 12, but size argument is 16
Fix:
On this line add -4 at end of sizeof. I know it's not a fix but it went through after this. If someone know the solution of Implementation #3, please mention in comments.
memcpy(&server.sin_addr, &sin.sin_addr, sizeof(struct sockaddr_in)-4);
The text was updated successfully, but these errors were encountered:
I tried compiling it on android studio 3.6, win10 64 bit and found following issues. Also fixed them and logging here to support the community.
Fix:
id3tag.c:833: error: undefined reference to 'index'
Fix:
In jni/Application.mk, add this:
APP_CFLAGS += -DSTDC_HEADERS
sock.c:686:5: error: 'memcpy' will always overflow - destination buffer has size 12, but size argument is 16
Fix:
On this line add -4 at end of sizeof. I know it's not a fix but it went through after this. If someone know the solution of Implementation #3, please mention in comments.
memcpy(&server.sin_addr, &sin.sin_addr, sizeof(struct sockaddr_in)-4);
The text was updated successfully, but these errors were encountered: