Soumyajeet Posted August 16, 2021 Report Share Posted August 16, 2021 Hello, I tried building SystemC 2.3.3 projects with different versions of standard C++ (14/17/20). From other threads on this forum, I could find the appropriate preprocessor switches (SC_CPLUSPLUS) for C++ 14 & 17 but there's no mention of one for C++ 20. Kindly let me know. Quote Link to comment Share on other sites More sharing options...
AmeyaVS Posted August 16, 2021 Report Share Posted August 16, 2021 Hello @Soumyajeet, As per the sources: https://github.com/accellera-official/systemc/blob/604182509559ae42c34e878f508bae7c18abbbd6/INSTALL.md#L602 It mentions that the SC_CPLUSPLUS would be set to the latest value configured at the compiler level/command line flag. I am using C++20 in my SystemC environment without any issues. Hope it helps. Regards, Ameya Vikram Singh Soumyajeet 1 Quote Link to comment Share on other sites More sharing options...
Soumyajeet Posted August 23, 2021 Author Report Share Posted August 23, 2021 On 8/16/2021 at 6:22 PM, AmeyaVS said: Hello @Soumyajeet, As per the sources: https://github.com/accellera-official/systemc/blob/604182509559ae42c34e878f508bae7c18abbbd6/INSTALL.md#L602 It mentions that the SC_CPLUSPLUS would be set to the latest value configured at the compiler level/command line flag. I am using C++20 in my SystemC environment without any issues. Hope it helps. Regards, Ameya Vikram Singh Thank you for the insight. It builds well with C++20 for me as well. Regards, Soumyajeet Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.