• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >嵌入式开发 > 求助!!交叉编译时出错

求助!!交叉编译时出错

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-06-05

佚名通过本文主要向大家介绍了新民晚报法律求助,社会求助电话,轻松筹大病求助,爱心求助网,求助平台等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 求助!!交叉编译时出错
描述:

安装完arm-linux-gcc后打算编译一个helloworld的程序,结果出现如下错误
[root@localhost c]# arm-linux-gcc hello.c
In file included from hello.c:1:
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
In file included from /opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:75,
                 from hello.c:1:
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:75,
                 from hello.c:1:
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/libio.h:332: error: expected specifier-qualifier-list before 'size_t'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/libio.h:364: error: expected declaration specifiers or '...' before 'size_t'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/libio.h:373: error: expected declaration specifiers or '...' before 'size_t'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/libio.h:489: error: expected declaration specifiers or '...' before '__gnuc_va_list'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/libio.h:491: error: expected declaration specifiers or '...' before '__gnuc_va_list'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/libio.h:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
In file included from hello.c:1:
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:312: error: expected declaration specifiers or '...' before 'size_t'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:319: error: expected declaration specifiers or '...' before 'size_t'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:347: error: expected declaration specifiers or '...' before '__gnuc_va_list'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:352: error: expected declaration specifiers or '...' before '__gnuc_va_list'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:355: error: expected declaration specifiers or '...' before '__gnuc_va_list'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:361: error: expected declaration specifiers or '...' before 'size_t'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:363: error: format string argument not a string type
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:365: error: expected declaration specifiers or '...' before 'size_t'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:366: error: expected declaration specifiers or '...' before '__gnuc_va_list'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:367: error: format string argument not a string type
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:678: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:684: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:706: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked'
/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root/usr/include/stdio.h:708: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked'
有大神遇到过吗,求解答


解决方案1:

可能交叉编译器有问题

解决方案2:

环境配置不对,没看见头文件找不到吗?仔细核对 include path


分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 新手求助c#智能设备开发界面
  • 求助!!交叉编译时出错
  • 新人求助求助
  • 求助,帮忙做个算法~!!!!!!!是为电机控制卡做的。
  • 求助!谁能给我一个USB键盘驱动程序代码?
  • [求助]usb设备如何判断是否与pc端联接

相关文章

  • 2017-06-05 如何获取并口地址
  • 2017-06-05 android51蓝牙a2dp作sink端的音频流在哪接收的,把音频流传入了哪个节点,求大神告知
  • 2017-06-05 求OV5640720P或者更高分辨率15帧配置
  • 2017-06-05 基于C8051F500的CAN总线问题?
  • 2017-06-05 驱动程序如何发送自己的IP包。?
  • 2017-06-05 请问v24和rs232兼容吗?高手请教!
  • 2017-06-05 关于用微处理器控制双电源自动切换电路设计
  • 2017-06-05 dns解析中的访问控制问题?
  • 2017-06-05 MSP430FR5738模数转换问题
  • 2017-06-05 ARMstm32AD采集数据存入Falsh,读出通过串口发送,出现丢包的原因

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • 关于vs1003和ds1302的sclk引脚
    • PADS中同一网络线宽必须保持一致?不一致会有些什么问题?
    • 关于68013A用过的请帮忙[img=http://forumcsdnnet/PointForum/ui/scripts/csdn/Plugin/001/
    • lwip作为服务器同个Ip地址多次重复连接服务器
    • vxworks68/69怎么配置FTPServer
    • 100分求解关于NDIS的简单问题
    • 地图匹配方面的问题请教大神
    • openwrt:使用PPPD时,用户的程序如何获取拨号成功或者失败的状态
    • [求助]bps包移植需要注意哪些地方?
    • ads1292rstm32采集的问题

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有