-->
Page 1 of 1

What is "c_stdlib.h" versus <stdlib.h>?

PostPosted: Sun Feb 21, 2016 10:26 pm
by Max44
I'm looking into adding my own C functions to NodeMCU and see that there's a subset of the usual C standard libraries in ~/nodemcu-firmware/apps/libc all with the "c_" prefix. Can someone explain what these files are and how they're created? Is it possible to create other libraries that might be missing from the set?

Re: What is "c_stdlib.h" versus <stdlib.h>?

PostPosted: Sat Mar 05, 2016 8:10 am
by TerryE
Just use some of the modules in app/modules as a template. I am in the process of developing an Extension developers guide, but there 's only so many hours in the day. You also need PiL V3 so buy it.

this firmware is a clone of eLua, which is designed to be build against a newlib-based ELF rather than the Posix libraries. The ESP8266 SDK has some of its own conventions. Just locally clone the firmware git repository and make. Do a find for all of the header files and grep is your great friend!!.