解决 undefined reference to `__aeabi_unwind_cpp_pr0' 问题-ARM裸机学习

一、遇到问题:在编译代码的时候,提示未定义错误信息 undefined reference to `__aeabi_unwind_cpp_pr0

解决 undefined reference to `__aeabi_unwind_cpp_pr0' 问题-ARM裸机学习

 

二、解决方法: 

    1、在makefile中的添加 -nostdlib , 即不使用标准库

    解决 undefined reference to `__aeabi_unwind_cpp_pr0' 问题-ARM裸机学习

    2、执行make clean 删除之前编译产生的文件  

    3、执行make 重新编译工程

    

    成功编译后,产生*.bin文件,可以烧录到嵌入式开发板中进行试验

    解决 undefined reference to `__aeabi_unwind_cpp_pr0' 问题-ARM裸机学习