Reputation: 197
I sucessfully compiled a 32-bit DLL using c++/cli/OpenCV in Viusal Studio 2010. I am trying to create a 64-bit DLL. When I change the Build configuration to x64 and compile it, it gives me
c:\opencv2.2\include\opencv2\core\mat.hpp(379): fatal error C1001: An internal error has
occurred in the compiler. (compiler file \
'f:\dd\vctools\compiler\utc\src\p2\wvm\mdmiscw.c', line 2704)
Any tips?
UPDATE: It turned out that c++-cli has some bug with opencv 64 bit. I added this
#pragma managed(push, off)
#include <opencv/cv.h>
#pragma managed(pop)
and that fixed it
Upvotes: 2
Views: 1554
Reputation: 197
It turned out that c++-cli has some bug with opencv 64 bit. I added this
#pragma managed(push, off)
#include <opencv/cv.h>
#pragma managed(pop)
Upvotes: 2