Skip to main content
Stepan Martinek
Associate II
Jan 26, 2022 3:14 PM UTC
Question

C++17 compatible HAL and LL libraries for MP1

Is there any plan to release C++17 compatible HAL and LL libraries for MP1 platform? I had written a lot of code in C++17 and later found out that MP1 libraries are full of `register` keyword which is not supported since C++17. A temporary solution is of course deleteing the keyword from all HAL and LL sources (no hard work, there are only about 20 occurences), but I would like to know the official plan or statement about this.

Thank you.

This topic has been closed for replies.

2 replies

Pavel A.
Jan 26, 2022 4:54 PM UTC

Where is the 'register' keyword: in .C or .h files?

If in .h files, can you put #define register /*nothing*/ before inclusion of these files?

(If in .c files, there's no issue at all)

Stepan Martinek
Associate II
Jan 27, 2022 9:02 AM UTC

It's in both.

Yes, that's another workaround and I've actually solved it similar way by adding preprocessor symbol `register=` directly to CubeIDE project tool settings.