Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By safield1
#1754 I am using the xtensa explorer to compile a project and I am getting a large number of undefined items that do not appear to be anywhere in the include files. I am sure I am missing a directive of some sort. I am used to using an Atmel environment and am not too up on configuring make, etc. The errors seem to be related to a large number of defines in osapi.h like
#define os_bzero ets_bzero
#define os_delay_us ets_delay_us
#define os_install_putc1 ets_install_putc1
#define os_install_putc2 ets_install_putc2
#define os_intr_lock ets_intr_lock
#define os_intr_unlock ets_intr_unlock
#define os_isr_attach ets_isr_attach
#define os_isr_mask ets_isr_mask
#define os_isr_unmask ets_isr_unmask
#define os_memcmp ets_memcmp
#define os_memcpy ets_memcpy
#define os_memmove ets_memmove
#define os_memset ets_memset

The ets_xxxxxx defines are not present and I am assuming refer to library entries but I do not know how to reference them. Any assistance for a newbie is most appreciated.
User avatar
By Sprite_tm
#1758
safield1 wrote:I am sure I am missing a directive of some sort.


No you're not, seemingly the normal way these Chinese programmers work is by just ignoring all the undeclared defines :X
For my httpd project, I wrote a espmissingincludes.h that catches most of these things. If you want, just clone http://git.spritesserver.nl/esphttpd.git/ and grab it from there; if you have any additions I'd appreciate a patch or pull-request.