These are chat archives for SmingHub/Sming
C+ app/application.cpp CC /C/tools/Sming/Sming/rboot/appcode/rboot-api.c CC /C/tools/Sming/Sming/rboot/appcode/rboot-bigflash.c AR out/build/app_app.a LD out/build/app_0.out c:/tools/Sming/Sming/compiler/lib/\libsming.a(NexProgressBar.o): In function `NexProgressBar::getValue(unsigned int*)': C:\tools\Sming\Sming/Libraries/Nextion/NexProgressBar.cpp:29: undefined reference to `NexProgressBar::utoa(unsigned int, char*, int)' c:/tools/Sming/Sming/compiler/lib/\libsming.a(NexProgressBar.o): In function `NexProgressBar::setValue(unsigned int)': C:\tools\Sming\Sming/Libraries/Nextion/NexProgressBar.cpp:34: undefined reference to `NexProgressBar::utoa(unsigned int, char*, int)' collect2.exe: error: ld returned 1 exit status make: *** [out/build/app_0.out] Error 1
This function is not defined in ANSI-C and is not part of C++, but is supported by some compilers.
char* utoa( unsigned int value, char* buffer, int radix );
The utoa() function coverts the unsigned integer n into a character string. The string is placed in the buffer passed, which must be large enough to hold the output. The radix values can be OCTAL, DECIMAL, or HEX. When the radix is DECIMAL, utoa() produces the same result as the following statement:
(void) sprintf(buffer, "%u", n);