-->
Page 1 of 2

large variety of undefined items

PostPosted: Fri Oct 17, 2014 5:51 pm
by safield1
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.

Re: large variety of undefined items

PostPosted: Sat Oct 18, 2014 10:10 am
by Sprite_tm
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.

Re: large variety of undefined items

PostPosted: Sun Oct 19, 2014 6:24 pm
by safield1
Thanks! I do not see how to get the information. I am not sure how to clone it. I went through the tree but did not find any source.

Re: large variety of undefined items

PostPosted: Sun Oct 19, 2014 6:26 pm
by safield1
OK, I am researching git and will clone it shortly. Thanks!