Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Problem with loading an example from "loadlibrary" Help
2 ビュー (過去 30 日間)
古いコメントを表示
I want to run the following example inMatlab Help for command"loadlibrary"
hfile = [matlabroot '\extern\include\matrix.h'];
loadlibrary('libmx', hfile, 'mfilename', 'mxproto')
I have installed Perl and Microsoft Software Development Kit (SDK) 7.1 as the C compiler. I have also chosen this compiler in "mex -setup" of command window. But when I run the above code I would see the following warning:
Warning: Warnings messages were produced while parsing. Check the functions you intend to use for
correctness. Warning text can be viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 344
Line 344 in loadlibrary has something to do with Perl. But I have added whole Perl installed folder to Matlab path. Interestingly, when I use Lcc-win32 C 2.4.1 compiler there is no warning. So it seems that Matlab has problem with a "Microsoft" C compiler.
I am stuck on this for three weeks, because I finally want to load a National Instrument NIDAQmx library which encounters the same warning and consequent error. I am running 32 bit Matlab 2012a on a 32 bit Windows 7. I also have the latest Data Acquisition Toolbox. Any help would be greatly appreciated.
1 件のコメント
Kaustubha Govind
2012 年 7 月 5 日
What do you see in 'warnings' when you run: [notfound,warnings]=loadlibrary('libmx', hfile, 'mfilename', 'mxproto')
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!