This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28P65X: Error while generate simulation file for CLB

Part Number: LAUNCHXL-F28P65X
Other Parts Discussed in Thread: C2000WARE

Tool/software:

I’m getting familiar with the CLB Tool for the C2000 device (using LAUNCHXL-F28P65X).
I followed the CLB Tool User’s Guide (spruir8b) and encountered the following issue.

I compiled SystemC using the C++14 standard. When I followed the User’s Guide step-by-step, at section 3.5.3 – Running the Simulation, step 4, I ran ./clb_simulation.sh and got the following error:

/usr/bin/systemc-2.3.3/src/sysc/kernel/sc_ver.h:182: 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)' collect2: error: ld returned 1 exit status

I saw that it required the C++17 standard, so I recompiled and reinstalled SystemC using C++17.
However, when I ran ./clb_simulation.sh again, I got more errors:

/usr/bin/ld: /home/dinhlx2/Programs/ccs2020/c2000/C2000Ware_5_05_00_00/utilities/clb_tool/clb_syscfg/systemc_linux/src/type3/CLB_FSM_SC_model.o: in function `__static_initialization_and_destruction_0(int, int)': /usr/bin/systemc-2.3.3/src/sysc/kernel/sc_ver.h:182: undefined reference to `sc_core::sc_api_version_2_3_3_cxx201402L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_3_cxx201402L(sc_core::sc_writer_policy)' /usr/bin/ld: /home/dinhlx2/Programs/ccs2020/c2000/C2000Ware_5_05_00_00/utilities/clb_tool/clb_syscfg/systemc_linux/src/type3/CLB_HLC_SC_model.o: in function `__static_initialization_and_destruction_0(int, int)': /usr/bin/systemc-2.3.3/src/sysc/kernel/sc_ver.h:182: undefined reference to `sc_core::sc_api_version_2_3_3_cxx201402L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_3_cxx201402L(sc_core::sc_writer_policy)' ...
(more similar error......)

So now it requires SystemC to be compiled with the C++14 standard.

Please help me find a workaround for this error.

Thanks