在使用extern过程中正常定义、声明、引用。结果报错:undefined reference to
![](https://img.haomeiwen.com/i4306784/713e5f97ae166990.png)
![](https://img.haomeiwen.com/i4306784/ee5692d43ffd6a6c.png)
其原因在于我忘记在cmakelists 添加提供定义的native-mum.c库
![](https://img.haomeiwen.com/i4306784/39c2768cdd3c88e7.png)
学习extern关键字https://www.cnblogs.com/codingmengmeng/p/7220119.html
在使用extern过程中正常定义、声明、引用。结果报错:undefined reference to
本文标题:使用extern遇到undefined reference to
本文链接:https://www.haomeiwen.com/subject/wiovmqtx.html
网友评论