Page 1 of 1

C module

Posted: Wed Oct 12, 2022 9:43 am
by mpython
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.

Re: C module

Posted: Wed Oct 12, 2022 11:57 am
by jimmo
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.