Error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] when building Boost 1.69.0

When I tried to build Boost with LLVM, I got the error mentioned in the title: “error: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]”. I’ve attached the project-config.jam file I used. And I’ve also sent an email to the Boost users mailing list about this.

Anyway, if possible, someone help would be appreciated. How do I fix this problem? Thanks in advance.

project-config.jam (1.12 KB)

You could add -Wno-register to the compilation flags, or remove the use of the register keyword from boost, or not compile in C++17 mode?

  • Dave