Rockbox Development > Starting Development and Compiling

m68k cross compiler // stdio.h missing

(1/3) > >>

Dermiste:
Hi there,

Using the utility in tools I create a cross compiler targeted for m68k family processors.
When I try to compile a simple hello world exemple I get the following:
helloworld.c:1:19: fatal error: stdio.h: No such file or directory

I guess it's missing all the basic libraries. Is there any way I can recompile the cross compiler so it includes them? Or maybe I need to add something to that command:
/usr/local/bin/m68k-elf-gcc -Wall helloworld.c -o hello


To make it work properly?

Thanks in advance

saratoga:
I don't know if you can use our compilers to build for something other than Rockbox.

Dermiste:
But this utility, rockboxdev.sh, allows to create a cross compiler right?
I am not yet at the point where I need to check the relevance of the target, first the compiler is missing the basics lib stdio.h.
When I compile using gcc (I am on osx) it works fine, so it means I have to add params or sth.

Any idea?

saratoga:
Its not missing those; we just don't use many of them.

Edit: take a look at the make file for an m68k target. It should list the actual headers iirc.

Dermiste:
Ok so there is a way a can modify the way the cross compiler is made to include those?
When you say the make file for a m68k target you mean a makefile for an existing project of mine? Or the makefile used in RockBox, in which case I don't know where to find it

Navigation

[0] Message Index

[#] Next page

Go to full version