target_link_libraries error:
When compiling a project with cmake, the following appears:
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
Cmake:
target_link_libraries(target target1 target2)
In this way, Target1 and target2 libraries need to be used when linking target. However, if Target1 also uses target2, you need to add additional:
target_link_libraries(target1 target2)
Otherwise, when the link generates Target1, you can’t find anything in target2. If target uses Target1 link again, it will definitely report an error.
Read More:
- [Solved] CMake Error Cannot specify link libraries for target “variational“ which is not built by this projec
- [Solved] Angular Start Project Error: The target entry-point “ngx-echarts“ has missing dependencies: – @juggle/resi
- Error 2 error c2491: XX: definition of dllimport static data member is not allowed
- Angular Start Porject error: ERROR in The target entry-point “primeng/editor“ has missing dependencies:
- [Solved] NO ST-LINK detected/ST-LINK USB communication error
- IAR Compile Error: Error[Li005]: no definition for [How to Solve]
- [Solved] QT error: error: undefined reference to ` VTable`
- Numpy.exp Function Error ‘Float’ object has no attribute ‘exp’
- [Solved] error: external/googletest/googletest: MODULE.TARGET.STATIC_LIBRARIES.libgtest already defined
- Exsi virtual machine is missing vmdk file error [How to Solve]
- MOTR compiling error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_R
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- Vscode pylint reported an error of “no member”, but it is running normally
- ElasticSearch Create Index Error: mapper_parsing_exception Root mapping definition has unsupported parameters
- Maven package error: [WARNING] The POM for xxx is missing, no dependency inform
- [Jeston Xavier NX Compile librealsense Error] AttributeError: module ‘pyrealsense2‘ has no attribute ‘pipeline‘
- [How to Fix]Unable to find the requested Boost libraries
- UserMapper.selectByPrimaryKey-Inline error solution
- [Solved] .\main.go:3:6: missing function body .\main.go:4:1: syntax error: unexpected semicolon or newline be
- [Solved] RK3399 Compile UBOOT Error: No rule to make target , needed by