我正在尝试使用loadlibrary
功能,但它向我显示了一个警告:
loadlibrary('test1.dll', 'testheader.h')
警告:解析时产生了警告消息。检查您打算使用的功能是否正确。可以使用以下命令查看警告文本: [notfound,warnings]=loadlibrary(...) 在 374 处的 loadlibrary 中
我使用 Visual c++ 2008 和 matlab R2008a 32 位
关于什么是错的任何建议?
我正在尝试使用loadlibrary
功能,但它向我显示了一个警告:
loadlibrary('test1.dll', 'testheader.h')
警告:解析时产生了警告消息。检查您打算使用的功能是否正确。可以使用以下命令查看警告文本: [notfound,warnings]=loadlibrary(...) 在 374 处的 loadlibrary 中
我使用 Visual c++ 2008 和 matlab R2008a 32 位
关于什么是错的任何建议?
No idea what the specific problem is since you haven't actually provided the warnings.
However, I can tell you that, when a build system says something like "do A to get more information"
, I generally find that it's a good idea to do A
.
In other words, change the line as suggested:
[notfound, warnings] = loadlibrary('test1.dll', 'testheader.h')
and then examine those two things to see what the actual problem was. See here for details, paraphrased below:
The snippet
[NotFound, Warnings] = loadlibrary ('SharedLib.dll', 'HeaderFile.h')
returns warning information from theSharedLib.dll
library file.
NotFound
is a cell array of the names of functions found in the header fileHeaderFile.h
, or any header added with the "addheader" option, but not found in theSharedLib.dll
library.
Warnings
contains a single character array of warnings produced while processing the header fileHeaderFile.h
.