You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just copy paste your code but when I try to compile there is a issue. the compiler says
mymodule.c:21:5: error: unknown field 'name' specified in initializer
.name = MP_QSTR_mymodule,
^
mymodule.c:21:5: error: initialization makes pointer from integer without a cast [-Werror]
mymodule.c:21:5: error: (near initialization for 'mp_module_mymodule.globals') [-Werror]
cc1: all warnings being treated as errors
Do you have an idea of my issue ?
Thank you in advance
The text was updated successfully, but these errors were encountered:
Hello guy,
I'm working on micropython and it's super interesting.
I have project and I would like to create my own python module. I saw your article and by the way for this. It's super useful. https://github.com/PyConPL/Book/blob/master/2016/workshops/hacking_micropython/text.md
I just copy paste your code but when I try to compile there is a issue. the compiler says
mymodule.c:21:5: error: unknown field 'name' specified in initializer
.name = MP_QSTR_mymodule,
^
mymodule.c:21:5: error: initialization makes pointer from integer without a cast [-Werror]
mymodule.c:21:5: error: (near initialization for 'mp_module_mymodule.globals') [-Werror]
cc1: all warnings being treated as errors
Do you have an idea of my issue ?
Thank you in advance
The text was updated successfully, but these errors were encountered: