Jump to content

Build SystemC 2.3.3 with C++20


Soumyajeet
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...