The version of libfxcg I'm using has a libc which has printf and friends broken for certain types of numbers. This libc is the same that is on Jonimoose's repo.
Numbers are completely broken but there are problems with the output in general, too - even if less frequent. But numbers do not output at all:
Most often numbers simply get replaced by a forward slash (situation not shown above). If the output is meant to be, for example, "tan(1)", it becomes "tan(/)". But then there are times where it is preceded by junk.
Strings without numbers sometimes output right, other times have leading spaces that shouldn't have and sometimes show junk:
I know AHelper has uClibc implemented on his libfxcg fork, and even though I can compile it (with lots of warnings), when I try to use it, the linker complains:
Code:
I think KermM solved some of the issues with printf so that LuaZM would work properly. But again, the fixed code is nowhere to be seen.
It's really annoying to have gone past lots of compiling trouble, and then when I have a almost-functioning add-in, I get these kinds of problems... I'm already tired of debugging problems that aren't related to my code or the code I'm porting... any suggestions on what can be done to get this working?
Numbers are completely broken but there are problems with the output in general, too - even if less frequent. But numbers do not output at all:
Most often numbers simply get replaced by a forward slash (situation not shown above). If the output is meant to be, for example, "tan(1)", it becomes "tan(/)". But then there are times where it is preceded by junk.
Strings without numbers sometimes output right, other times have leading spaces that shouldn't have and sometimes show junk:
I know AHelper has uClibc implemented on his libfxcg fork, and even though I can compile it (with lots of warnings), when I try to use it, the linker complains:
Code:
/home/gabriel/Development/Casio-Pro/fixedSDK/lib/libc.a(_vfprintf_internal.o): In function `__vfprintf_internal':
_vfprintf_internal.c:(.text._vfprintf_internal+0x3d0): undefined reference to `_strnlen'
_vfprintf_internal.c:(.text._vfprintf_internal+0x3dc): undefined reference to `_fputs_unlocked'
collect2: error: ld returned 1 exit status
I think KermM solved some of the issues with printf so that LuaZM would work properly. But again, the fixed code is nowhere to be seen.
It's really annoying to have gone past lots of compiling trouble, and then when I have a almost-functioning add-in, I get these kinds of problems... I'm already tired of debugging problems that aren't related to my code or the code I'm porting... any suggestions on what can be done to get this working?