2013-12-13 2 views
0
1>C:\opencv243\build\include\constants.h(15): warning C4305: 'initializing' : truncation from 'double' to 'const float' 
1>C:\opencv243\build\include\constants.h(26): warning C4305: 'initializing' : truncation from 'double' to 'const float' 
1>prog.cpp(16): warning C4068: unknown pragma 
1>prog.cpp(44): warning C4068: unknown pragma 
1>prog.cpp(48): error C3861: 'round': identifier not found 
1>prog.cpp(49): error C3861: 'round': identifier not found 
1>prog.cpp(54): warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data 
1>prog.cpp(74): warning C4068: unknown pragma 
1>prog.cpp(189): warning C4068: unknown pragma 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

Я хочу, чтобы запустить точный центр глаза программы слежения, но это мои ошибки ... Пожалуйста, помогите мне исправить это .. я нету получил достаточно времени для этого проекта ..OpenCV ошибки - Точный центр глаза отслеживания

(если все мой код нужно, я могу отправить его)

* рЕДАКТИРОВАТЬ * последний статус моего проекта; у него есть ошибки в построении.:

1>------ Build started: Project: MNOpenCV, Configuration: Debug Win32 ------ 
1>hkjn.obj : error LNK2019: unresolved external symbol "double __cdecl computeDynamicThreshold(class cv::Mat const &,double)" ([email protected]@[email protected]@@[email protected]) referenced in function "class cv::Point_<int> __cdecl findEyeCenter(class cv::Mat,class cv::Rect_<int>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@YA?AV[email protected]@[email protected]@[email protected]@[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
1>hkjn.obj : error LNK2019: unresolved external symbol "class cv::Mat __cdecl matrixMagnitude(class cv::Mat const &,class cv::Mat const &)" ([email protected]@[email protected]@@[email protected]@Z) referenced in function "class cv::Point_<int> __cdecl findEyeCenter(class cv::Mat,class cv::Rect_<int>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
1>hkjn.obj : error LNK2019: unresolved external symbol "bool __cdecl inMat(class cv::Point_<int>,int,int)" ([email protected]@[email protected]@[email protected]@[email protected]) referenced in function "bool __cdecl floodShouldPushPoint(class cv::Point_<int> const &,class cv::Mat const &)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z) 
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 
1>C:\Users\AA\Documents\Visual Studio 2010\Projects\MNOpenCV\Debug\MNOpenCV.exe : fatal error LNK1120: 4 unresolved externals 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

ответ

0

Возможно, вы забыли добавить include для функции «double round (double x)»?

#include <math.h> 

Если нет, то это может быть проблема с инструкциями Pragma ...

C++ Round Function Reference

С наилучшими пожеланиями!

+0

Благодарю вас за помощь. и ı имеют новую ошибку. Похожий на этот вопрос: http://stackoverflow.com/questions/5864520/error-while-trying-to-run-project-unable-to-start-program-cannot-find-the-file http:// /stackoverflow.com/questions/6590482/visual-c-2010-error-the-system-cannot-find-the-file-specified –

+0

@ AydınAyaydın попытаться удалить файл sdf, который создает VS, щелкните правой кнопкой мыши по решению, выберите «Очистить» и затем, постройте его снова. Надеюсь, что это работает! – rhcpfan

+0

Я сделал это и построил. Но это не работает. Мой ход все еще здесь .. –

Смежные вопросы