C module

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
mpython
Posts: 11
Joined: Sat Nov 14, 2020 7:32 pm

C module

Post by mpython » Wed Oct 12, 2022 9:43 am

Hello, I have a problem with compilation of C module to micropython for stm32 port.
With include library dynruntime.h.

The error is:
In file included from ../../extmod/Cled/cblik.c:2:
../../py/dynruntime.h:37:2: error: #error "dynruntime.h included in non-dynamic-module build."
37 | #error "dynruntime.h included in non-dynamic-module build."


Thank you for advice.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: C module

Post by jimmo » Wed Oct 12, 2022 11:57 am

This forum will be made read-only soon. Please post at GitHub Discussions.

It sounds like the error message is telling you exactly what's going on -- 37 | #error "dynruntime.h included in non-dynamic-module build."

If you're just writing a regular module, you should not be including dynruntime.h. It is only for use by dynamic native modules (e.g. https://docs.micropython.org/en/latest/ ... atmod.html )

It's hard to know without more information about what you're doing.

Post Reply