Welcome! Log In Create A New Profile

Advanced

How to build a debug configuration? ("function call is not allowed in a constant expression”)

Posted by JuKu 
I try to build Marlin for debugging. Compiling in release (default) configuration works fine. however, if I add "build_type = debug" to the [env] section (as instructed by this page), I immediately get a ton of problems listed, I don't even need to compile. Basically, every “#if ENABLED...” phrase gives an "function call is not allowed in a constant expression” error. What is going on?
The situation fixed itself overnight (or by enabling M42 and M43). I'm still wondering what is/was going on, but more for general interest... :-/
Sorry, only registered users may post in this forum.

Click here to login