perbone / luascript

Lua language support for Godot Engine
Apache License 2.0
633 stars 45 forks source link

error: use of undeclared identifier 'wcstombs' #5

Closed oBattleTurtleo closed 5 years ago

oBattleTurtleo commented 5 years ago

Hi perbone, I'm facing this error, what should I do to fix it? thanks.

Screenshot 2019-04-02 at 1 35 15 PM

ShoesForClues commented 5 years ago

you can fix this by adding #include <cstdlib> in debug.h

oBattleTurtleo commented 5 years ago

Hi, ShoesForClues it works, thanks.

perbone commented 5 years ago

Interestingly, I've never had this kind of error, but, I imagine, this dependency had previously been inherited from Godot's includes. So to be safe I included the dependency as suggested. Fixed and sent to upstream. Thank's guys.