<span id="Label3"></p><p><p><span style="color: #3366ff;">1.__int64 can't find the symbol</span></p></p>Use int64_t to replace: #if defined (__android__) typedef int64_t __int64; #endif<span style="color: #3366ff;"><span style="color: #3366ff;">2.<sys/io.h> can't find them</span> .</span>ANDROID does not need to directly reference the file, with the following macro removal can be #!defined (__apple__) &&!defined (__android__) #include <sys/io.h> # endif<span style="color: #3366ff;"><span style="color: #3366ff;">3.so_nosigpipe can't find them</span> .</span>So_nosigpipe exists in the mac, but it doesn't exist in Android. Use msg_nosignal instead of # if defined (__android__) #define So_nosigpipe<span style="white-space: pre;"><span style="white-space: pre;">msg_nosignal #endif</span></span><span style="color: #3366ff;"><span style="color: #3366ff;"> <span style="white-space: pre;"><span style="white-space: pre;">4.</span></span>uint64_t, int64_t, uint32_t, int32_t and other similar types cannot be found</span></span>Please check your header file contains, put the System's header file before your own header File. Because your own header file has a duplicate type that can be defined, it causes the system header file to Fail.<span style="color: #3366ff;"><span style="color: #3366ff;">5.s_iread, s_iwrite or __s_iread, __s_iwrite can't find</span></span>Please replace it with S_IRUSR and S_iwusr.<span style="color: #3366ff;"><span style="color: #3366ff;">6.pthread_cancel can't find them</span> .</span>This android is not implemented, there are a number of alternative methods, see in Detail: http://bbs.rosoo.net/thread-10289-1-1.html<span style="color: #3366ff;"><span style="color: #3366ff;">7.getifaddrs, <ifaddr.h> not found</span></span>Android has not been implemented. But thankfully, someone has helped us achieve it. Thank Him: Https://github.com/kmackay/android-ifaddrs<span style="color: #3366ff;"><span style="color: #3366ff;">8.<sys/statvfs.h> can't find them</span> .</span>Please use this instead: #if defined (__android__) # include <sys/vfs.h> # define STATVFS statfs #else # include <SYS/STATVFS.H&G T #endif<p><p>[ANDROID-NDK compilation] NDK compiled C + + compatibility issues Summary collation</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service