使用MounRiver配置C++工程编译修改方法

MRS使用C++编译修改方法:
1、选中工程 右键 new->other

 

注意事项:

1、

   la a0,__libc_fini_array

   call atexit

   call __libc_init_array

 

 2、

void _init(void){}

void _fini(void){}

 

注意工程转换为C++之后,原有的设置可能都会变成默认的,需要重新添加。比如头文件路径或链接脚本文件路径。

 

 

 此时工程文件环境已经配置好了,后缀.cpp的文件都会调用C++编译器编译,其他的就是C与C++互相调用的方法了。

 

posted @ 2023-03-17 15:23  ZaiLi  阅读(426)  评论(0编辑  收藏  举报