Why do I get "undefined reference to SystemInit" ?

Q:  I'm doing a project from scratch, when building a very simple code I got "undefined reference to `SystemInit'", why ?

A:  In the startup, all ST Cube libraries call for this SystemInit function. In order to build without error you should add this function to your code.

You can find this fuction in the library or use an empty one: