error C2653: 'ucom' : is not a class or namespace name

asked 2013-12-09 05:51:21 -0500

moonkeh gravatar image

I'm trying to compile opencv in Windows Server 2012 R2 using Visual Studio 2010 Professional.

Building opencv_core is failing with 'error C2653: 'ucom' : is not a class or namespace name'.

How do I fix this?

edit retag flag offensive close merge delete

Comments

What source code do you use? Is it some release or you take master or 2.4 branch?

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-12-10 03:37:26 -0500 )edit

It's 2.4.7. I seemed to have fixed the problem by removing all references to 'ucom' from the Windows file unknwn.h, but I'm not sure how great an idea it was to alter an inbuilt Windows file like that...

moonkeh gravatar imagemoonkeh ( 2013-12-11 04:42:58 -0500 )edit