Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use C libraries like string.h and stddef.h #24

Open
odxa20 opened this issue Dec 22, 2020 · 1 comment
Open

Use C libraries like string.h and stddef.h #24

odxa20 opened this issue Dec 22, 2020 · 1 comment

Comments

@odxa20
Copy link
Contributor

odxa20 commented Dec 22, 2020

Is there a way to use some of the libraries included with the gnu toolchain when writing programs ? Whenever I try to use the string library I get the following error

undefined reference to `strlen'

I have tried removing the -ffreestanding -fno-builtin -nostdlib -nodefaultlibs flags from the Makefile but I've had no luck

@shioyadan
Copy link
Member

Sorry for my late reply.
In general, GLIBC integrated into GCC cannot be used in RSD because GLIBC works along with OS such as Linux. Instead of the default GLIBC, you have to use libc that can be used under a bare-metal environment without rich OS features.

We confirmed that some applications built for Zephyr OS, which is an embedded OS, can be executed on RSD. So, if you need libc features, my recommendation is to try Zephyr OS.

We are now working on providing some scripts that convert ELF binaries built for Zephyr OS into code.hex for RSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants