我已在Visual中为此代码进行了所有设置:
#include "stdafx.h"
#include <stdio.h>
#include <cstdlib>
#include <iostream>
#include <stdlib.h>
#define BUFSIZE 1000
int main ()
{
Engine *ep;
if (!(ep = engOpen("\0"))) {
fprintf(stderr, "\nCan't start MATLAB engine\n");
return EXIT_FAILURE;
}
system("pause");
return 0;
}
我仍然会收到此错误:
错误2错误C2065:&#39;引擎&#39; :未声明的标识符
错误3错误C2065:&#39; ep&#39; :未声明的标识符
错误4错误C2065:&#39; ep&#39; :未声明的标识符
错误5错误C3861:&#39; engOpen&#39;:未找到标识符