Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hacking Micropython issue #62

Closed
APOON24 opened this issue Apr 26, 2017 · 3 comments
Closed

Hacking Micropython issue #62

APOON24 opened this issue Apr 26, 2017 · 3 comments

Comments

@APOON24
Copy link

APOON24 commented Apr 26, 2017

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

@kwadrat
Copy link
Member

kwadrat commented Apr 26, 2017

Good Morning! What is your e-mail? Please answer to mine: ciri@ciri.pl
I will try to connect you with author of this text, Radomir.

Best wishes,
Piotr Kasprzyk

@kwadrat
Copy link
Member

kwadrat commented Apr 27, 2017

@deshipu ^^^ I think you could help with this issue. Thank you very much! Best wishes, Piotr Kasprzyk

@kwadrat
Copy link
Member

kwadrat commented Apr 30, 2017

The issue was solved by e-mail.

@kwadrat kwadrat closed this as completed Apr 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants