Run simble c code using arm-none-eabi-gcc

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi

I am using UBUNTU 14.04 32 bit

This is my c code

#include "stdio.h"

int main()

{

printf("hiii\n");

}

i tried to run this in terminal  using

Screenshot from 2016-09-17 17_48_23.png

with gcc tool chain this is working fine, what could be the issue ??

0 Likes
4 Replies
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

#include <stdio.h> rather than #include "stdio.h".

Anonymous
Not applicable

Hi

Thank you for your reply , i tried both ("stdio"  & <stdio>) and also i tried specifying the whole path of stdio.h , nothing seems working

0 Likes

The stdio.h you are looking for is at tools/ARM_GNU/include/stdio.h

But you had better use the SDK's make file infrastructure to compile the code.

Otherwise, it's likely you will hit more issues.

Try adding VERBOSE=1 to build a snip code to figure out what the SDK does when

compile the code.

Anonymous
Not applicable

Hi , Thank you for your immediate reply , i try as you suggest.

0 Likes