gpt4 book ai didi

Code::在 C 中使用 OpenCV "undefined reference to ` cvFree _'|"时 block 返回错误

转载 作者:行者123 更新时间:2023-11-30 19:46:17 25 4
gpt4 key购买 nike

/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvDecRefData':|
main.c|| undefined reference to `cvFree_'|
main.c|| undefined reference to `cvFree_'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvGetRow':|
main.c|| undefined reference to `cvGetRows'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvGetCol':|
main.c|| undefined reference to `cvGetCols'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReleaseMatND':|
main.c|| undefined reference to `cvReleaseMat'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvSubS':|
main.c|| undefined reference to `cvAddS'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvCloneSeq':|
main.c|| undefined reference to `cvSeqSlice'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvSetNew':|
main.c|| undefined reference to `cvSetAdd'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvGetSetElem':|
main.c|| undefined reference to `cvGetSeqElem'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvEllipseBox':|
main.c|| undefined reference to `cvEllipse'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvFont':|
main.c|| undefined reference to `cvInitFont'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadIntByName':|
main.c|| undefined reference to `cvGetFileNodeByName'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadRealByName':|
main.c|| undefined reference to `cvGetFileNodeByName'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadStringByName':|
main.c|| undefined reference to `cvGetFileNodeByName'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvReadByName':|
main.c|| undefined reference to `cvGetFileNodeByName'|
main.c|| undefined reference to `cvRead'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvContourPerimeter':|
main.c|| undefined reference to `cvArcLength'|
/home/piotr/Dokumenty/Projekt antybulglar/main.o||In function `cvCalcHist':|
main.c|| undefined reference to `cvCalcArrHist'|
||=== Build failed: 18 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

我尝试过多种方式安装它,例如: https://www.youtube.com/watch?v=MqQB5KKJCh0

还是什么都没有。

最佳答案

已经修复了它,我需要将 OpenCV 添加到设置/编译器中的 Code::Blocks 中,我首先将“usr/include/opencv”和“usr/include/opencv2”添加到搜索目录/编译器。并在“链接器设置”选项卡中为 OpenCV 添加 usr/local/lib 中的所有 .so。

关于Code::在 C 中使用 OpenCV "undefined reference to ` cvFree _'|"时 block 返回错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24250406/

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