{"id":324,"date":"2022-08-30T14:59:27","date_gmt":"2022-08-30T14:59:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/06\/build-error-opencv-on-eclipse-in-windows-collection-of-common-programming-errors\/"},"modified":"2022-08-30T14:59:27","modified_gmt":"2022-08-30T14:59:27","slug":"build-error-opencv-on-eclipse-in-windows-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/build-error-opencv-on-eclipse-in-windows-collection-of-common-programming-errors\/","title":{"rendered":"Build error OpenCV on Eclipse in Windows-Collection of common programming errors"},"content":{"rendered":"<p>i am new in OpenCV and i am trying to setup OpenCV in eclipse in Windows 7.<\/p>\n<p>I have fallowed this tutorial and also i have set my path environment to openCv\/bin directory but i still get an errors and cannot compile my project.<\/p>\n<p>Here is my code and log ;<\/p>\n<pre><code>#include \"opencv\/cv.h\"\n#include \"opencv\/cxcore.h\"\n#include \"opencv\/ml.h\"\n#include \"opencv\/highgui.h\"\n\nusing namespace std;\n\nint main() {\n\n    \/\/new typename ImageIO::ImageIO;\n\n    IplImage* img = cvLoadImage(\"Resources\/imageDatabase\/0000.jpg\");\n    cvNamedWindow( \"1.Original Image\", 1 ) ;\n    cvShowImage( \"1.Original Image\", img ); \n<\/code><\/pre>\n<p>ERRORS;<\/p>\n<pre><code>D:\\Cagri\\Job Information\\Project\\C++\\ImageProcessingTool\\Debug\/..\/src\/ImageProcessingTool.cpp:34: undefined reference to `cvLoadImage'\nD:\\Cagri\\Job Information\\Project\\C++\\ImageProcessingTool\\Debug\/..\/src\/ImageProcessingTool.cpp:35: undefined reference to `cvNamedWindow'\nD:\\Cagri\\Job Information\\Project\\C++\\ImageProcessingTool\\Debug\/..\/src\/ImageProcessingTool.cpp:36: undefined reference to `cvShowImage'\n<\/code><\/pre>\n<p>Please help me to solve this.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-06 03:07:51. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>i am new in OpenCV and i am trying to setup OpenCV in eclipse in Windows 7. I have fallowed this tutorial and also i have set my path environment to openCv\/bin directory but i still get an errors and cannot compile my project. Here is my code and log ; #include &#8220;opencv\/cv.h&#8221; #include &#8220;opencv\/cxcore.h&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-324","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=324"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/324\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}