• Question

  • Hi, gentlemen from Microsoft, I am developing an application on the Microsoft visual studio 2017 platform with the Opencv libraries that compile it with cmake, the application that develops in c ++ compiles and runs perfectly, but when working in a Windows form application CLR, it gives me two errors, which I reveal below.

    Directorio de inclusiones adicionales C:\Users\Laboratorio\Documents\opencv3.0\build\install\include % funciona correcto% Directorio de bibliotecas adicionales: C:\Users\Laboratorio\Documents\opencv3.0\build\install\x64\vc15\lib %funciona corecto% EL ERROR SE PRODUCE AL DEPURAR EL FORMULARIO CON LAS DIRECTIVAS: #pragma once #include <opencv2/opencv.hpp> //directiva opencv #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/objdetect/objdetect.hpp> //#include<opencv2/face.hpp> #include <opencv/cv.h> ////importante #include <opencv2/ml.hpp> namespace SOFTWARENUEVO { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace System::Threading; using namespace cv; using namespace std; /// <summary> /// Resumen de MyForm5 /// </summary> public ref class MyForm5 : public System::Windows::Forms::Form {

    I WOULD LIKE YOUR GUIDANCE to solve the problem that I am trying to solve.
    Error messages


    Severity Code Description Project File Line State deleted Tool

    Error (active) E0035 directive #error: <thread> is not supported when compiling with / clr or / clr: pure.SOFTWARENUEVO c: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.13.26128 \ include \ thread 8 Visual C ++ IntelliSense

    Gravedad           Código  Descripción        Proyecto             Archivo Línea     Estado suprimido            Herramienta
    Error C1189 #error: <mutex> no es compatible cuando se compila con / clr o / clr: pure.SOFTWARENUEVO c: \ archivos de programa (x86) \ microsoft visual studio \ 2017 \ community \ vc \ tools \ msvc \ 14.13.26128 \ include \ mutex 8 CL

    Monday, May 21, 2018 4:09 PM

All replies

  • Hi,

    thanks for posting here.

    This forum is an English forum. Please post your case in English.

    Your understanding and cooperation will be grateful.

    Best Regards,

    Baron Bi

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Tuesday, May 22, 2018 1:34 AM