《量化投资:以MATLAB为工具》

MATLAB技术论坛

 找回密码
 注册账号
查看: 1024|回复: 0
收起左侧

[提问] Win7平台下loadlibrary函数载入dll文件的问题

[复制链接]
发表于 2016-7-21 09:31:09 | 显示全部楼层 |阅读模式
各位论坛里的好友,请教大家个问题。我在使用海洋光学USB4000的光谱仪过程中,需要进行混合编程,使用loadlibrary打开动态链接库的过程中,总是提示找不到usb4000.dll文件。
情况1:
loadlibrary('usb4000','usb4000.h','addheader','header2');
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
Error using loadlibrary (line 419)
There was an error loading the library "C:\Users\Administrator\Desktop\PISA_DEBUG\PISA_DEBUG\sonfunction\CCD\sonfunction\Dll\usb4000.dll"
找不到指定的模块。



Caused by:
    Error using loaddefinedlibrary
    找不到指定的模块。

情况2:
loadlibrary('usb4000',@usb4000dllmfile);
Warning: A loader file was supplied that was built with a previous version of MATLAB that will not be supported in future versions of
MATLAB.
> In loadlibrary at 378
Error using loadlibrary (line 419)
There was an error loading the library "C:\Users\Administrator\Desktop\PISA_DEBUG\PISA_DEBUG\sonfunction\CCD\sonfunction\Dll\usb4000.dll"
找不到指定的模块。



Caused by:
    Error using loaddefinedlibrary
    找不到指定的模块。
图1.jpg
图1.jpg
您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|网站地图|MATLAB技术论坛|Simulink仿真论坛 ( 蜀ICP备19014457号 

GMT+8, 2020-12-1 11:15 , Processed in 0.049987 second(s), 13 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表