Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316310

Summary: Eclipse+Windows+C/CPP+OpenCV+MINGW+GCC compiler problem cannot find -lC:\OpenCV2.0\include\opencv
Product: [Tools] CDT Reporter: mc <adventure.mc>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED INVALID QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: minor    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description mc CLA 2010-06-09 10:43:13 EDT
Build Identifier: 20100218-1602

Hi,
I am trying to setup Open CV on my Eclipse C/C++ dev environment using MinGW, G++ compiler. I am trying to run a simple program based on the tutorial posted her in the link http://tommy.chheng.com/development/windows_development_setup.html 

The error is saying some thing like below on console.

g++ -omcc.exe mc.o -l C:\OpenCV2.0\include\opencv\cv.h
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lC:\OpenCV2.0\include\opencv

I have tried many linker path setting changes and it says the same for all the include -l files. 
Please help. Thanks in advance.

Reproducible: Always

Steps to Reproduce:
1.Setup C++ project with Opencv libraries and MINGW tool chain
2.Create a program using OpenCv as shown in the given link
3.Build the code
Comment 1 Andrew Gvozdev CLA 2010-06-09 12:51:32 EDT
You have a better chance of troubleshooting asking user forum http://www.eclipse.org/forums/index.php?t=thread&frm_id=80
This place is used to keep track of bugs in CDT tooling.