Error using .dylib from visual studio - System.Ent​ryPointNot​FoundExcep​tion

조회 수: 5 (최근 30일)
MP
MP 2018년 10월 22일
Hi, I have followed the example 'Generating C Code from MATLAB for Use with Java and .NET Applications' shown at:
https://www.mathworks.com/company/newsletters/articles/generating-c-code-from-matlab-for-use-with-java-and-net-applications.html
I am attempting (just to get started) to integrate the .dylib with a c# .net core console project (using visual studio for mac 2017)
I have added an appropriate DYLD_LIBRARY_PATH so the runtimes can be seen, then after including the following code taken from the example, I get a System.EntryPointNotFoundException for the MATLAB_CODER_DLL
using System;
using System.Runtime.InteropServices;
class Program
{
[DllImport("MATLAB_CODER_DLL",
CallingConvention = CallingConvention.Cdecl)]
public static extern void kalmanfilter(Double[] a, Double[] b);
static void Main(string[] args)
{
Double[] ak = { 1, 2 };
Double[] bk = new Double[2];
kalmanfilter(ak, bk);
}
}
Any ideas at this stage would really be appreciated.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call MATLAB from .NET에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by