undefined reference to `vtable for XXX‘

简介: undefined reference to `vtable for XXX‘

详细错误:


/usr/bin/ld: /tmp/ccZUXOcx.o: in function `AppLauncher::AppLauncher()':
ProductStarter.cpp:(.text._ZN11AppLauncherC2Ev[_ZN11AppLauncherC5Ev]+0xf): undefined reference to `vtable for AppLauncher'
/usr/bin/ld: /tmp/ccgYBOTx.o:(.data.rel.ro._ZTI15ProductLauncher[_ZTI15ProductLauncher]+0x10): undefined reference to `typeinfo for AppLauncher'
collect2: error: ld returned 1 exit status

 咱玩C++也有点年头了……其实这个错误是吾自己解决的。具体参考:


https://blog.csdn.net/quantum7/article/details/88085619


 吾在定义的时候也想到了这一点,只是觉得不是必须的。结果……

目录
相关文章
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
582 0
解决办法:undefined reference to symbol 'shm_open@@GLIBC_2.2.5'
解决办法:undefined reference to symbol 'shm_open@@GLIBC_2.2.5'
353 0
|
Linux C语言 计算机视觉
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
322 0
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
|
Ubuntu C语言
【ubuntu】2.c:(.text+0xd2): undefined reference to `pthread_create‘ collect2: error: ld returned
【ubuntu】2.c:(.text+0xd2): undefined reference to `pthread_create‘ collect2: error: ld returned
143 0
undefined reference to `major‘
undefined reference to `major‘
276 0
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
93 0
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
136 0
|
计算机视觉
交叉编译opencv:undefined reference to `png_riffle_palette_neon
交叉编译opencv:undefined reference to `png_riffle_palette_neon
195 0
undefined reference to `crypto_get_random'
undefined reference to `crypto_get_random'
83 0

热门文章

最新文章