Я пытаюсь запустить пример проекта C ++ в Microsoft Visual Studio 2019. Образец файла создается с использованием Open eVision Studio
// This cpp script file was created by Open eVision Studio.
// Open eVision Studio (c)Euresys s.a. Belgium 2006.
// Date : 9/3/2020 at 10:37.
// This section contains the variable declarations
#include "Open_eVision_2_10.h"
using namespace Euresys::Open_eVision_2_10;
using namespace std;
EImageBW8 EBW8Image1; // EImageBW8 instance
EImageBW8 EBW8Image2; // EImageBW8 instance
EImageBW8 EBW8Image3; // EImageBW8 instance
// This section contains the operations code
try {
EBW8Image1.Load("C:\\Users\\Public\\Documents\\Euresys\\Open eVision 2.10\\Sample Images\\EasyMatch\\Switch1.tif");
EBW8Image2.Load("C:\\Users\\Public\\Documents\\Euresys\\Open eVision 2.10\\Sample Images\\EasyMatch\\Switch1.tif");
EBW8Image3.SetSize(512, 512);
// Make image black
EasyImage::Oper(EArithmeticLogicOperation_Copy, EBW8(0), &EBW8Image3);
EasyImage::Threshold(&EBW8Image2, &EBW8Image3, 85);
EasyImage::Threshold(&EBW8Image2, &EBW8Image3, 126);
EasyImage::Threshold(&EBW8Image2, &EBW8Image3, 139);
}
catch(const EException&){
// Insert exception handling code here
}
Что я пытаюсь сделать, это запустить его в Microsoft Visual Studio 2019. Я создал C++ Desktop application
и скопировал вставленный выше код. В свойствах проекта C / C ++ -> General -> Additional включают каталоги как C:\Program Files %28x86%29\Euresys\Open eVision 2.10\Include;
но ошибка при сборке. Некоторые из отображаемых ошибок.
Error (active) E1696 cannot open source file "Open_eVision_2_10.h" euresys_1
Error (active) E0276 name followed by '::' must be a class or namespace name euresys_1
Error C1083 Cannot open include file: 'Open_eVision_2_10.h': No such file or directory euresys_1
Error (active) E0020 identifier "EImageBW8" is undefined euresys_1
Снимок экрана