九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 10411|回复: 5
打印 上一主题 下一主题

【求助】6818的linux下做开发,编译环境搭建不起来!

[复制链接]
跳转到指定楼层
楼主
发表于 2017-2-7 14:50:40 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
/mnt/x6818/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin# ./arm-eabi-gcc -o 1 1.c  -static
In file included from 1.c:1:0:
/mnt/x6818/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/lib/gcc/arm-eabi/4.8/include-fixed/stdio.h:50:23: fatal error: sys/cdefs.h: No such file or directory
#include <sys/cdefs.h>
                       ^
compilation terminated.

编译报错,使用的是网盘下这个路径的编译器/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin


1.c文件内容为:
#include "stdio.h"
int main()
{
        printf("hello, 6818\n");

        return 0;

}




回复

使用道具 举报

沙发
 楼主| 发表于 2017-2-8 09:14:07 | 显示全部楼层
按照您这说法,我都不能用printf,不能在用户空间开发应用程序了? 那我买你们开发板干什么?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-5-19 22:47 , Processed in 0.017275 second(s), 16 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表