accellera-official / systemc

SystemC Reference Implementation
https://systemc.org/overview/systemc/
Apache License 2.0
445 stars 141 forks source link

Undefind reference to sc_core::sc_api_version_2_3_3cxx201103L ... #60

Closed mazhar1998 closed 6 months ago

mazhar1998 commented 8 months ago

Issues1.pdf What is the solution Thanks and regards Mazhar

AmeyaVS commented 8 months ago

This issue is due to mismatched C++ Standard feature flags enabled for your module buld vs the SystemC compilation flags.

Please check the -std=c++xx flag when building your project, where xx is the value between 11,14,17, etc.

mazhar1998 commented 8 months ago

Building using 11 standard only still facing same issue

On Thu, 26 Oct, 2023, 1:42 pm Ameya Vikram Singh, @.***> wrote:

This issue is due to mismatched C++ Standard feature flags enabled for your module buld vs the SystemC compilation flags.

Please check the -std=c++xx flag when building your project, where xx is the value between 11,14,17, etc.

— Reply to this email directly, view it on GitHub https://github.com/accellera-official/systemc/issues/60#issuecomment-1780625132, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAOG5MBAT5LUNIM4CF6O3TTYBILNPAVCNFSM6AAAAAA6QPW7WOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQGYZDKMJTGI . You are receiving this because you authored the thread.Message ID: @.***>

AmeyaVS commented 8 months ago

With which c++ standard flags was the SystemC library built with? You can check the SystemC forum for similar discussion and possible solution.

aut0 commented 8 months ago

You can also disable the check by defining SC_DISABLE_API_VERSION_CHECK. With modern compilers (gcc, clang) this is usually not a problem.

lmailletcontoz commented 6 months ago

Closed as answered.