文章链接:https://codemouse.online/archives/2020-03-08185618

报错原因

在使用inet_aton函数的时候,有时候会报错,是因为64位机子的时候,比32位机子多一个头文件,将头文件加上就可以了
#include <arpa/inet.h>

  • x64:
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>

  • x32:
    #include <sys/socket.h>
    #include <netinet/in.h>

使用inet_aton报错相关推荐

  1. 继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错? springboot 两种方式稳定解决跨域问题

    继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错???springboot 两种方式稳定解决跨域问题! 之前我写了一篇文章,来解决CORS报错 ...

  2. Access to XMLHttpRequest at file from origin ‘null‘ has been blocked by CORS policy谷歌浏览器本地打开项目js文件报错

    Access to XMLHttpRequest at 'file:///xxxxx/PQ.BaseInfo.proto' from origin 'null' has been blocked by ...

  3. go build 编译报错 missing go.sum entry for module providing package

    go build 编译报错 missing go.sum entry for module providing package 解决方法 // 移除未使用的依赖 go mod tidy 再次编译,就可 ...

  4. docker报错:driver failed programming external connectivity on endpoint, iptables:No chain by that name

    docker 报错: Error response from daemon: Cannot restart container hello: driver failed programming ext ...

  5. mybatis查询报错:com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string

    mybatis查询报错: com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from strin ...

  6. mongo报错:not authorized on bb to execute command { create: \“xxx\“...}

    mongo报错: {"ok" : 0,"errmsg" : "not authorized on bb to execute command { cr ...

  7. restTemplate http请求报错:no suitable HttpMessageConverter found for response type and content type

    报错信息: org.springframework.web.client.UnknownContentTypeException: Could not extract response: no sui ...

  8. 解决gitte提交报错 error: GE007: Your push would publish a private email address.

    错误情况: gitte提交报错,无法提交上去,报错如下: remote: Powered by GITEE.COM [GNK-6.0] remote: error: GE007: Your push ...

  9. JS Uncaught SyntaxError:Unexpected identifier异常报错原因及其解决方法

    最近在写ajax的时候,调用js方法,遇到了Uncaught SyntaxError:Unexpected identifier异常报错,开始搞不清原因,很苦恼. 以为是js方法参数个数和长度的问题, ...

最新文章

  1. 基于吉日嘎拉的通用权限管理WebForm版扩展:字典选项管理和缓存管理
  2. 使用Java流和In-JVM-Memory的超低延迟查询
  3. 微信平台开发应用的签名
  4. windows部署novnc浏览器远程控制windows
  5. 数据分析之数据可视化
  6. 大学计算机专业用ipad pro够用吗,苹果iPad Pro上很合适学生党的几个专业App
  7. 2018.06~7 阅读随笔
  8. echarts的legend显示不全_【报Bug】echarts图表的legend没有显示
  9. B站视频下载工具唧唧down的安装和使用教程
  10. 开发一个商城需要多少钱 做一个电商网站大概多少钱
  11. 在线AES加密/解密工具
  12. BZOJ 1208: [HNOI2004]宠物收养所 (Treap)
  13. android 半透明色值_Android设置十六进制颜色不同透明度对应的值
  14. 二叉树存储结构 mysql_为什么mysql索引选择b+树作为底层存储结构?
  15. 如何进行APP界面设计
  16. 大文件分块计算MD5值 C++实现
  17. Java Web3j nonce 获取
  18. 两数之和、三数之和、四数之和、K数之和
  19. Richard Stevens答读者问
  20. Voyager下的Dashboard Widgets

热门文章

  1. 初识DataBinding路上的坎
  2. 通过Windows10管理AD域控
  3. ON_NOTIFY用法
  4. 家·谱——人脸识别家谱系统
  5. 如何快速搭建个人博客网站(详解)
  6. 虚函数原理与虚函数表
  7. ecshop mysql 报错_修复ecshop数据库ecs_sessions.MYI报错
  8. [java] 设计模式
  9. 外设驱动库开发笔记47:ADS111x系列ADC驱动
  10. 阿里云栖大会100位顶级大咖演讲PPT+视频全分享!