gpt4 book ai didi

c++ - 如何解决我的项目中的 “undefined reference to function” 错误?

转载 作者:行者123 更新时间:2023-11-27 23:54:13 26 4
gpt4 key购买 nike

<分区>

我想 https://github.com/Rventric/Text-Detection 但是如果我运行这个命令:

g++ -o  DEMO Demo.cpp `pkg-config opencv --cflags --libs`

我收到这个错误:

/tmp/ccTKjiBu.o: In function `main':
Demo.cpp:(.text+0x159): undefined reference to `TextDetection::detectText(cv::Mat const&, std::vector<std::string, std::allocator<std::string> >, bool)'
/tmp/ccTKjiBu.o: In function `LinkCandidate::LinkCandidate()':
Demo.cpp:(.text._ZN13LinkCandidateC2Ev[_ZN13LinkCandidateC5Ev]+0x4c): undefined reference to `Iqueue::Iqueue()'
/tmp/ccTKjiBu.o: In function `GetCandidate::GetCandidate()':
Demo.cpp:(.text._ZN12GetCandidateC2Ev[_ZN12GetCandidateC5Ev]+0x77): undefined reference to `Swt::Swt()'
/tmp/ccTKjiBu.o: In function `VericaficationTextLine::VericaficationTextLine()':
Demo.cpp:(.text._ZN22VericaficationTextLineC2Ev[_ZN22VericaficationTextLineC5Ev]+0x25): undefined reference to `FilterBox::FilterBox()'
collect2: error: ld returned 1 exit status

谁来解决这个错误?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com