Skip to main content
Associate III
October 7, 2024
Question

Build error Cubeide 16.1 STM32L496ZGT6P

  • October 7, 2024
  • 1 reply
  • 1321 views

Good morning

I imported a project (i'm sure it works fine) but i can't build.

Here the errors:

trtgrtme.pngdwedwewee.png

 

Does anyone can help me?

    1 reply

    TDK
    Super User
    October 7, 2024

    runtime_error is defined in <stdexcept>, so include that in the file that uses it.

    #include <stdexcept>

     

    Note that microcontrollers typically don't use a full C++ implementation and exceptions may not be supported depending on how your project is set up to build (Project Properties -> Tool Settings -> MCU/MPU Settings -> Runtime library). Use the full C++ implementation.

     

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Associate III
    October 7, 2024

    I solved that problem (thankx) but it isn'Senzaewsdfnome.pngt still ok

     

     

    Andrew Neil
    Super User
    October 7, 2024

    Your screenshot has cut off any useful error information.

    Instead of the 'Problems' view, the 'Console' is more useful - select all in the 'Console' view, then copy & paste as text here.

    Instructions here for posting "preformatted" text - like Conole output:

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/725146/highlight/true#M54

     

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.