error using opencv with VC++ 2005

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

error using opencv with VC++ 2005

samarthgupta007
hi ,

i was developing an application using OpenCv and Visual studio 2005.
the application works fine ... but when i include "highgui." ... i start getting following errors :

error C2872: 'CvvImage' : ambiguous symbol
        could be 'C:\Program Files\OpenCV\otherlibs\highgui\highgui.h(427) : CvvImage'
        or 'C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(68) : ATL::CvvImage'



.... it seems it is due to the fact that i am using VC++ library class "CImage" .... when i change the seqeuence of inclusion of header file the error changes to :

error C2440: '=' : cannot convert from 'CvvImage *' to 'ATL::CImage *'


can any one tell the solution .... ?


thanx :

Samarth

Reply | Threaded
Open this post in threaded view
|

Re: error using opencv with VC++ 2005

Jean-Pierre Landry
The following line is found in 'highgui.h':

#define CImage CvvImage

which seems to define 'CImage' as a synonym for 'CvvImage'

You might try to comment this line and see what happens...  :-)

Good luck!




samarthgupta007 wrote:

> hi ,
>
> i was developing an application using OpenCv and Visual studio 2005.
> the application works fine ... but when i include "highgui." ... i start getting following errors :
>
> error C2872: 'CvvImage' : ambiguous symbol
>         could be 'C:\Program Files\OpenCV\otherlibs\highgui\highgui.h(427) : CvvImage'
>         or 'C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlimage.h(68) : ATL::CvvImage'
>
>
>
> .... it seems it is due to the fact that i am using VC++ library class "CImage" .... when i change the seqeuence of inclusion of header file the error changes to :
>
> error C2440: '=' : cannot convert from 'CvvImage *' to 'ATL::CImage *'
>
>
> can any one tell the solution .... ?
>
>
> thanx :
>
> Samarth
>
>
>
> ------------------------------------
>
> Change settings: http://www.yahoogroups.com/mygroups, select
>    Get Emails (get all posts)
>    Daily Digest (one summary email per day)
>    Read on the web (read posts on the web only)Or Unsubscribe by mailing [hidden email]