首页 > 编程语言 >使用MounRiver配置C++工程编译修改方法

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

时间:2023-03-17 15:35:52浏览次数:41  
标签:__ 工程 void C++ fini 编译 MounRiver

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++互相调用的方法了。

 

标签:__,工程,void,C++,fini,编译,MounRiver
From: https://www.cnblogs.com/liaigu/p/17226963.html

相关文章

  • c++prime 6-9知识点摘取
      initializer_list<T>类:https://blog.csdn.net/qunsorber/article/details/122860985     https://blog.csdn.net/qq_36546177/article/details/108763448......
  • ROS话题通信C++(附launch启动方式)
    ROS话题通信C++(附launch启动方式)创建工作空间mkdir-ptopic_ws/srccdtopic_wscatkin_make设置环境变量source./devel/setup.bashsource$ROS_PACKAGE_PATH效......
  • C++中的HashTable性能优化
    C++中的HashTable性能优化-知乎https://zhuanlan.zhihu.com/p/614105687C++中的HashTable性能优化腾讯技术工程​编程话题下的优秀答主​关注 72......
  • c++调用.so库
    参考:https://blog.csdn.net/weixin_45024226/article/details/120156687https://blog.csdn.net/weixin_40437821/article/details/110671132......
  • 点集从上到下,从左到右进行Z字型排序(C++与python实现,自写)
    C++实现:voidPointDisgus(vector<Point>&Points){Pointt;intn=Points.size();inti,j;vector<Point>OutPoints;vector<Point>Points_......
  • .Net7 CLR的调用函数和编译函数
    前言.Net运行模型,无非就两个过程。一个是调用入口函数,另外一个就是编译入口函数。前者主调用,后者主编译。概括一:入口函数:RunMainInternal所有的.Net程序,包括控制台,Web......
  • C++11lambda表达式精讲
    lambda表达式的概念和基本用法lambda表达式定义了一个匿名函数,并且可以捕获一定范围内的变量。lambda表达式的语法形式可简单归纳如下:[capture](params)opt->......
  • 黑马阶段三 C++篇 02day
    2day1.引用是什么:给变量空间取别名intmain(){inta=0;int&b=a;b=100;cout<<a<<endl;return0;}2.引用的注意使用引用类型可以像指针那样访问只......
  • gcc编译报错junk at end of line的原因
    gcc编译的顺序如下: gcc-Ehelloworld.c-ohelloworld.igcc-Shelloworld.i-ohelloworld.sgcc-chelloworld.s-ohelloworld.o必须注意,-E和-S是区分大小写的,......
  • 如何首次编译RV1126的U-Boot
    一、获取U-Boot源码TB-RV1126Ds:gitclonehttps://github.com/rockchip-toybrick/u-boot.git-bnext-dev二、获取rkbin源码下载rkbin到u-boot同级目录:gitcl......