Matlab和DLL-“;“未找到方法”;

Matlab和DLL-“;“未找到方法”;,matlab,dll,Matlab,Dll,我将dll加载到matlab中: [met,b]=loadlibrary([geodesic_library '.dll'], hfile); 然后,我从dll调用一个函数,如下所示: [id, tmp1, tmp2, num_edges, edges] = calllib(geodesic_library, 'new_mesh', length(p)/3, p, length(t)/3, t, 1, tmp); 这会产生错误 Method was not found. 但是,通过查看库

我将dll加载到matlab中:

[met,b]=loadlibrary([geodesic_library '.dll'], hfile);
然后,我从dll调用一个函数,如下所示:

[id, tmp1, tmp2, num_edges, edges] = calllib(geodesic_library, 'new_mesh', length(p)/3, p, length(t)/3, t, 1, tmp);
这会产生错误

Method was not found. 
但是,通过查看库中的方法,我清楚地看到该方法存在:

met = 
  Columns 1 through 4
    'new_mesh'    'new_algorithm'    'delete_algorithm'    'delete_mesh'
  Columns 5 through 8
    'propagate'    'trace_back'    'distance_and_source'    [1x36 char]
下面是
b
的内容:

geodesic_matlab_api.h
geodesic_release_thunk_pcwin64.c
   Creating library geodesic_release_thunk_pcwin64.lib and object geodesic_release_thunk_pcwin64.exp
然而,当我调用
M=libfunctions([geodesic_library.dll']
时,我得到
M
是空的


我用的是原作者的示例代码,应该是这样的,只不过是我把C++代码重新编译成64位DLL

你能显示<代码> MUT< /COD>和 B<代码>吗?谢谢。请在
loadlibrary
之后。为了您自己的查看,请尝试
libfunctionsview(…)
@chappjc-添加,谢谢。