Reputation: 21
I have a DLL file, generated by MATLAB Coder, that contains function Adjust
. This functions calls for few outer functions written in outer .m files, e.g PulseFindAdapt
:
function [Indexes,NoiseLogBinary,NoiseThreshold]=Adjust(NoiseLog,NoiseTime,MedianLong)%значения аргументов
NoiseLog = NoiseLog/8192;
NoiseLog=NoiseLog-my_medFilt(NoiseLog,MedianLong);
mean = 45;
[Indexes,NoiseLogBinary,NoiseThreshold]=PulseFindAdapt(NoiseLog,NoiseTime,mean,7);
end
When I try to load generated Adjust.dll file using QLibrary
, I get following error:
"Cannot load library Adjust.dll: the specified module could not be found"
Here I found a suggestion, that the problem could be to load one of .dll dependencies(last post):
I tried loading other .dll files,containing only one function without and dependencies, and it worked, so the problem isn't in using QLibrary
; also tried including headers and linking .cpp files with generated code for functions(e.g PulseFindAdapt
), but it didn't work. Any suggestions how to load and use such .dll?
Will appreciate any help!
Upvotes: 1
Views: 218
Reputation: 2699
For all problem concerning linking error dont' hesitate to use DependencyWalker www.dependencywalker.com .
It wiil give dependency and functions
Upvotes: -1