katang Posted November 18, 2022 Report Share Posted November 18, 2022 Hi, I receive the error in function `__static_initialization_and_destruction_0(int, int)': CLI.cpp:(.text+0x64e): undefined reference to `sc_core::sc_api_version_2_3_3_cxx201703L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_3_cxx201703L(sc_core::sc_writer_policy)' when building my app (I upgraded to Ubuntu 22.04 and I noticed that SystemC was also upgraded) I found that from another discussion threads that the probable reason is a version mismatch between compiling SystemC and my application. (and as I saw (guess), there is some kind of inconsistency with the version handling) I did set manually and statically compiler version to 14, and also attempted to provide the compiler location as a CMake -D flag, but the error persists. How can I diagnose the issue (and more importantly, to fix it? I also have difficulties with finding out SystemC_CXX_STANDARD; the include and library names are delivered correctly. What extra setting do I need? Quote Link to comment Share on other sites More sharing options...
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.