0
我试图编译我的插座lib中的NDK和我得到以下两个错误:的Android NDK问题插座和性病问题
error: 'close' was not declared in this scope
和
error: 'min' is not a member of 'std'
我按照步骤概述HERE修复后者无济于事,我不确定第一个。伊夫进口下列库:
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
谁能帮助我?我正在慢慢失去理智。我修复的每个构建错误似乎都出现了。我很接近得到这个工作.....
此外,我已阅读相关的ndk文档。我已经在我的Application.mk文件中尝试了gnustl_shared和stlport_shared作为APP_STL:值。
只是作为参考,你可以得到源代码HERE
我已阅读文档。我可能没有阅读docs/dir中的正确文档,但是... 无论哪种情况,感谢!!!!!你是我的英雄!像魅力一样工作。 – nterry 2012-07-16 01:23:06