What do you want to achieve?
Being able to compile the code, with no placeholder remaining in the generated code
Being able to compile the code, with no placeholder remaining in the generated code
Hi,
Which SquareLine version do you use? How can we reproduce this issue?
I have the same problem. SLS
version 1.3.2
. To reproduce the problem, simply add the Spinbox
widget to the screen.
Also, when compiling a project in VS Code
, errors occur:
lib/ui/src/screens/ui_Main.c: In function 'ui_Main_screen_init':
lib/ui/src/screens/ui_Main.c:356:37: error: implicit declaration of function 'round' [-Werror=implicit-function-declaration]
lv_spinbox_set_step( ui_AlarmHours, round(pow(10, 1 - 1)) );
^~~~~
lib/ui/src/screens/ui_Main.c:356:37: warning: incompatible implicit declaration of built-in function 'round'
lib/ui/src/screens/ui_Main.c:356:37: note: include '<math.h>' or provide a declaration of 'round'
lib/ui/src/screens/ui_Main.c:7:1:
+#include <math.h>
lib/ui/src/screens/ui_Main.c:356:37:
lv_spinbox_set_step( ui_AlarmHours, round(pow(10, 1 - 1)) );
^~~~~
lib/ui/src/screens/ui_Main.c:356:43: error: implicit declaration of function 'pow' [-Werror=implicit-function-declaration]
lv_spinbox_set_step( ui_AlarmHours, round(pow(10, 1 - 1)) );
^~~
lib/ui/src/screens/ui_Main.c:356:43: warning: incompatible implicit declaration of built-in function 'pow'
lib/ui/src/screens/ui_Main.c:356:43: note: include '<math.h>' or provide a declaration of 'pow'
Is it possible to automatically connect the library <math.h>
when exporting, if any widget requires it?