error: undefined reference to '__dso_handle'解决方案

时间:2020-05-10 09:47:09   收藏:0   阅读:312

home/NDK/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a/libsupc++.a(eh_globals.o):eh_globals.cc:function _GLOBAL__sub_I_eh_globals.cc: error: undefined reference to ‘__dso_handle‘

 

解决办法:

在main.c前面加上一条:

extern "C"{ void * __dso_handle = 0 ;}


 
原文链接:https://blog.csdn.net/u014652390/java/article/details/50638845

原文:https://www.cnblogs.com/hshy/p/12861771.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!