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:为 CLB 生成仿真文件时出错

Guru**** 2535600 points
Other Parts Discussed in Thread: LAUNCHXL-F28P65X, C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1551621/launchxl-f28p65x-error-while-generate-simulation-file-for-clb

器件型号:LAUNCHXL-F28P65X
主题: C2000WARE 中讨论的其他器件

工具/软件:

我正在熟悉 C2000 器件的 CLB 工具(使用 LAUNCHXL-F28P65X)。
我遵循了 CLB 工具用户指南 (spruir8b)、遇到了以下问题。

我使用 C++14 标准编译了 SystemC。 并且逐步遵循了用户指南、如所示 第 3.5.3 节–运行模拟 、第 4 步、我运行./clb_simulation.sh并得到以下错误:

/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

我发现它需要 C++17 标准、因此我使用 C++17 重新编译并重新安装 SystemC。
然而,当我./clb_simulation.sh再次运行时,我得到了更多的错误:

/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......)

因此、现在它需要使用 C++14 标准进行编译的 SystemC。

请帮助我找到此错误的解决方法。

谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好,让我尝试重新创建这个在我的结束,并得到你。

    谢谢。此致、
    Masood Raza。