필터 지우기
필터 지우기

error for Create MEX-File from OpenCV C++ file

조회 수: 1 (최근 30일)
fred bnm
fred bnm 2016년 2월 22일
댓글: James Tursa 2016년 2월 22일
i am using MATLAB 2015b and install opencv interface According to this link: http://www.mathworks.com/help/vision/ug/opencv-interface.html samples were well executed (No error). but for compile my cpp file by mexOpenCV.m function , I encountered this error :
Error using mexOpenCV (line 122)
LINK : error LNK2001: unresolved external symbol mexFunction
main.lib : fatal error LNK1120: 1 unresolved externals
include for my cpp file is :
#include "opencvmex.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
  댓글 수: 1
James Tursa
James Tursa 2016년 2월 22일
The error states there was no mexFunction found. Can you verify that mexFunction is in one of your source files, and that you are listing this file in the mex command?

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by