berry-lang / berry

A ultra-lightweight embedded scripting language optimized for microcontrollers.
https://berry-lang.github.io
MIT License
782 stars 95 forks source link

Compilation failed : implicit declaration of function ‘strncasecmp’ #409

Closed jeason1997 closed 2 months ago

jeason1997 commented 2 months ago

Platform : raspberry pi a+ , Linux raspberrypi 6.6.20+rpt-rpi-v6 #1 Raspbian 1:6.6.20-1+rpt1 (2024-03-07) armv6l GNU/Linux

But when I followed the approach of this : Fix compilation #408 add "#include " to "src/be_strlib.c" it successfully compiled.

s-hadinger commented 2 months ago

See https://github.com/berry-lang/berry/pull/408

yuppox commented 2 months ago

I ran into this on two machines. Is there a reason to omit strings.h normally?

s-hadinger commented 2 months ago

I have submitted #412 to avoid dependency on strings.h