CXX0017: 错误: 没有找到符号

本文档详细介绍了如何解决在Debug配置状态下遇到的CXX0017错误,即编译过程中找不到特定符号的问题。通过分析和调试,提供了解决此问题的初始解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

编程环境:Visual Studio 2010

首先确定是在 Debug 配置状态。

初始解决方案如下:

错误现象:CXX0017: Error: symbol this not found
g++ -std=c++11 -I/usr/local/include -I/home/tian/ofcs/src/SeetaFace6OpenBinary-main/CPU/SeetaFace/index/build/include -I/home/tian/opencv-4.1.0/include -I/home/tian/opencv-4.1.0/build -I/home/tian/opencv-4.1.0/modules/core/include -I/home/tian/opencv-4.1.0/modules/calib3d/include -I/home/tian/opencv-4.1.0/modules/features2d/include -I/home/tian/opencv-4.1.0/modules/flann/include -I/home/tian/opencv-4.1.0/modules/dnn/include -I/home/tian/opencv-4.1.0/modules/objdetect/include -I/home/tian/opencv-4.1.0/modules/stitching/include -I/home/tian/opencv-4.1.0/modules/ml/include -I/home/tian/opencv-4.1.0/modules/imgproc/include -I/home/tian/opencv-4.1.0/modules/photo/include -I/home/tian/opencv-4.1.0/modules/video/include -I/home/tian/opencv-4.1.0/modules/videoio/include -I/home/tian/opencv-4.1.0/modules/imgcodecs/include -I/home/tian/opencv-4.1.0/modules/highgui/include -o test test.o -L/usr/local/lib -L/home/tian/ofcs/src/SeetaFace6OpenBinary-main/CPU/SeetaFace/index/build/lib64 -L/home/tian/ofcs/src/SeetaFace6OpenBinary-main/CPU/SeetaFace/index/build/lib -lSeetaFaceDetector600 -lSeetaFaceLandmarker600 -lSeetaFaceRecognizer610 -lopencv_world test.o: In function `test1()': test.cpp:(.text+0x76f): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' test.cpp:(.text+0xa3d): undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)' test.cpp:(.text+0xaf7): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' test.cpp:(.text+0xd85): undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)' /home/tian/ofcs/src/SeetaFace6OpenBinary-main/CPU/SeetaFace/index/build/lib64/libtennis.so: undefined reference to `exp@GLIBC_2.29' /home/tian/ofcs/src/SeetaFace6O
03-22
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值