error: undefined reference to 'vtable for android::DongleUsbHost'
16lz
2021-01-23
target SharedLib: libkehdevRuntime (out/target/product/generic/obj/SHARED_LIBRARIES/libkehdevRuntime_intermediates/LINKED/libkehdevRuntime.so)
/home/eagle/android_source/android_4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/generic/obj/SHARED_LIBRARIES/libkehdevRuntime_intermediates/Channel/DongleChannel.o: in function android::DongleUsbHost::DongleUsbHost():device/project/usbhost1.6/kdeviceservice/Channel/DongleChannel.cpp:14: error: undefined reference to 'vtable for android::DongleUsbHost'/home/eagle/android_source/android_4.2/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/generic/obj/SHARED_LIBRARIES/libkehdevRuntime_intermediates/Channel/DongleChannel.o: in function android::DongleUsbHost::DongleUsbHost():device/project/usbhost1.6/kdeviceservice/Channel/DongleChannel.cpp:14: error: undefined reference to 'VTT for android::DongleUsbHost'
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libkehdevRuntime_intermediates/LINKED/libkehdevRuntime.so] Error 1
在anroid中编译实现的代码,出现以上错误。
原因很简单,忘了实现DongleUsbHost的析构函数。实现即可。
好纠结。。。
更多相关文章
- Android Audio代码分析22 - AudioEffect::getEnabled函数
- Android 源码下载遇到 403错误 的解决办法
- Android make menuconfig make[1]: *** [scripts/kconfig/mconf]
- eclipse中加入写好的android工程和出现的错误
- android studio对于错误拼写/不识别的英文单词,给予波浪提示。
- Android系统库错误解决
- 解决 “Error generating final archive: Debug Certificate exp
- Android异步框架android-async-http-master的下载导入和错误处理
- 在Android Studio中引入Anko 编译报Could not resolve com.googl