hi, how can I add stdint.h in libfxcg?
It's provided by GCC:


Code:
% ls -l $(sh3eb-elf-gcc -print-file-name=include/stdint.h)

The default implementation is in `stdint-gcc.h`.
how do I include it, if my Makefile is this https://pastebin.com/eSz5KJGU
where do I mention the path so that it builds?
You don't, it's included by default. Just #include <stdint.h>. If it complains about it not being found it's because it's assuming hosted; you will see it complains on a #include_next, which is a different line. In that case build with -ffreestanding and it should be fine.
ok thanks, I added that in the following line, it seems to build fine:
CFLAGS = -Os -Wall $(MACHDEP) $(INCLUDE) -ffunction-sections -fdata-sections -ffreestanding
Yes, that's it! Enjoy Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement