查看: 929|回复: 8
收起左侧

如何修改工程类型为 C++

  [复制链接]

  离线 

该用户从未签到

发表于 2022-8-7 15:51:31 | 显示全部楼层 |阅读模式

有人预言,RISC-V或将是继Intel和Arm之后的第三大主流处理器体系。欢迎访问全球首家只专注于RISC-V单片机行业应用的中文网站

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
看到官方的 TWEN-CH32V103-RGB 模板中有 C++ 的选项MounRiver Stuido IDE-如何修改工程类型为 C++risc-v单片机中文社区(1)

但是自己新建的工程却少了关于 C++ 的设置项,因工程需要引入 C++ 的代码,应该如何切换?
MounRiver Stuido IDE-如何修改工程类型为 C++risc-v单片机中文社区(2)




上一篇:【2022年7月】山河MRS团队发布Windows平台下RISC-V社区版IDE工具
下一篇:UOS 系统安装无法启动MounRiver_Studio_Community_Linux_x64_V130
RISCV作者优文
全球首家只专注于RISC-V单片机行业应用的中文网站
回复

使用道具 举报

  离线 

该用户从未签到

 楼主| 发表于 2022-8-7 15:58:45 | 显示全部楼层
<nature>org.eclipse.cdt.core.ccnature</nature>
全球首家只专注于RISC-V单片机行业应用的中文网站

  离线 

该用户从未签到

 楼主| 发表于 2022-8-7 16:29:07 | 显示全部楼层
链接时还是报错了

  1. make -j16 all
  2. c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/lib/rv32imac/ilp32\libg_nano.a(lib_a-closer.o): in function `.L0 ':
  3. closer.c:(.text._close_r+0x12): undefined reference to `_close'
  4. c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/lib/rv32imac/ilp32\libg_nano.a(lib_a-lseekr.o): in function `.L0 ':
  5. lseekr.c:(.text._lseek_r+0x16): undefined reference to `_lseek'
  6. c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/lib/rv32imac/ilp32\libg_nano.a(lib_a-readr.o): in function `.L0 ':
  7. readr.c:(.text._read_r+0x16): undefined reference to `_read'
  8. c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/lib/rv32imac/ilp32\libg_nano.a(lib_a-sbrkr.o): in function `.L0 ':
  9. sbrkr.c:(.text._sbrk_r+0x12): undefined reference to `_sbrk'
  10. c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/lib/rv32imac/ilp32\libg_nano.a(lib_a-fstatr.o): in function `.L0 ':
  11. fstatr.c:(.text._fstat_r+0x14): undefined reference to `_fstat'
  12. c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/lib/rv32imac/ilp32\libg_nano.a(lib_a-isattyr.o): in function `.L0 ':
  13. isattyr.c:(.text._isatty_r+0x12): undefined reference to `_isatty'
  14. collect2.exe: error: ld returned 1 exit status
  15. make: *** [makefile:80: CH32V307_EVB.elf] Error 1
复制代码

全球首家只专注于RISC-V单片机行业应用的中文网站

  离线 

  • TA的每日心情

    2022-6-26 13:17
  • 签到天数: 4 天

    [LV.2]

    发表于 2022-8-8 15:04:06 | 显示全部楼层
    什么板子?哪个芯片?哪个版本MRS?社区版还是专业版?

    点评

    CH32V_EVB CH32V307VCT6 MounRiver Studio Version: v1.81 社区版  详情 回复 发表于 2022-8-8 17:41
    全球首家只专注于RISC-V单片机行业应用的中文网站

      离线 

  • TA的每日心情

    2022-6-26 13:17
  • 签到天数: 4 天

    [LV.2]

    发表于 2022-8-8 15:04:17 | 显示全部楼层
    什么板子?哪个芯片?哪个版本MRS?社区版还是专业版?
    全球首家只专注于RISC-V单片机行业应用的中文网站

      离线 

    该用户从未签到

     楼主| 发表于 2022-8-8 17:41:05 | 显示全部楼层
    51MCU 发表于 2022-8-8 15:04
    什么板子?哪个芯片?哪个版本MRS?社区版还是专业版?

    CH32V_EVB
    CH32V307VCT6
    MounRiver Studio Version: v1.81
    社区版
    全球首家只专注于RISC-V单片机行业应用的中文网站

      离线 

    该用户从未签到

    发表于 2022-8-29 22:48:34 | 显示全部楼层
    hello, I had same problem with c++ in MRS
    did you solve it?

    点评

    外国友人啊  详情 回复 发表于 2022-8-31 17:20
    全球首家只专注于RISC-V单片机行业应用的中文网站

      离线 

  • TA的每日心情
    奋斗
    2022-6-21 08:23
  • 签到天数: 2 天

    [LV.1]

    发表于 2022-8-31 17:20:17 | 显示全部楼层
    einhorn32 发表于 2022-8-29 22:48
    hello, I had same problem with c++ in MRS
    did you solve it?

    外国友人啊MounRiver Stuido IDE-如何修改工程类型为 C++risc-v单片机中文社区(3)MounRiver Stuido IDE-如何修改工程类型为 C++risc-v单片机中文社区(4)MounRiver Stuido IDE-如何修改工程类型为 C++risc-v单片机中文社区(5)
    全球首家只专注于RISC-V单片机行业应用的中文网站

      离线 

  • TA的每日心情
    拍拍
    2021-10-29 10:26
  • 签到天数: 1 天

    [LV.1]

    发表于 2022-9-3 17:54:28 | 显示全部楼层
    MRS上C++开发的问题,附件内容可供参考!

    MRS Compile C .zip

    1 MB, 下载次数: 5

    全球首家只专注于RISC-V单片机行业应用的中文网站
    高级模式
    B Color Image Link Quote Code Smilies

    本版积分规则

    关闭

    RISC-V单片机中文网上一条 /2 下一条


    版权及免责声明|RISC-V单片机中文网 |网站地图

    GMT+8, 2024-5-16 17:12 , Processed in 0.858430 second(s), 69 queries .

    快速回复 返回顶部 返回列表