Declaration of 'struct sockaddr_in' will not be visible outside of this function警告的处理
来源:互联网 发布:设计一款人工智能产品 编辑:程序博客网 时间:2024/05/21 19:31
Declaration of 'struct sockaddr_in' will not be visible outside of this function
做ios网络开发的肯定会用到苹果的官方库Reachability。ios5发布了,将项目升级到ios5的过程发一个warning:
+ (Reachability*) reachabilityWithAddress: (const struct sockaddr_in*) hostAddress;中
Declaration of 'struct sockaddr_in' will not be visible outside of this function
解决办法很简单,Reachability.h中最前面添加头文件:#import <netinet/in.h>
- Declaration of 'struct sockaddr_in' will not be visible outside of this function警告的处理
- Declaration of 'struct sockaddr_in' will not be visible outside of this function警告的处理
- 如何解决Reachability中的Declaration of 'struct sockaddr_in' will not be visible outside of this function
- implicit declaration of function 'asprintf' 警告的解决
- 出现警告:implicit declaration of function
- 解决:implicit declaration of function 警告
- Eclipse警告解决:Implementation of project facet maven could not be found. Functionality will be limited.
- Eclipse警告解决:Implementation of project facet maven could not be found. Functionality will be limited.
- Eclipse警告解决:Implementation of project facet maven could not be found. Functionality will be limited
- 编译时出现如下警告“implicit declaration of function Set_Disp_Port_SpeedMode"
- 警告 incompatible implicit declaration of built-in function ‘memset’ 解决方案
- implicit declaration of function
- implicit declaration of function
- implicit declaration of function
- implicit declaration of function 这种警告问题的原因及解决方法
- implicit declaration of function 这种警告问题的原因及解决方法
- xcode 中出现 Implicit declaration of function 'xxxx' is invalid in C99” 警告的解决办法
- Implicit declaration of function ‘xxxx’ is invalid in C99” 警告的解决办法
- CString的GetBuffer用法
- iOS SDK: Working with URL Schemes
- ADB远程调试: adb connect
- 《Item-to-Item Collaborative Filtering》笔记
- iOS开发中一些有用的小代码
- Declaration of 'struct sockaddr_in' will not be visible outside of this function警告的处理
- GMM的EM算法实现
- sqlserver获取汉字助记码
- 安装mysql-workbench(MySQL图形化管理工具)
- 杨梅派 (Waxberry Pi)手册
- 距离保护消除死区的4种方式
- 这两年项目用到的CPU/MCU,记录一下
- 【总结】VB串口控件MSComm中的数值转换
- 主题:8个优秀的Android开源游戏引擎