Why do I receive errors when trying to compile LOADLIBRARY or run an application that uses LOADLIBRARY with MATLAB Compiler 4.0 (R14)?
Afficher commentaires plus anciens
I am running into errors when attempting to compile my code that uses the LOADLIBRARY function. There are several situations I have seen:
1. When compiling the following code:
function [a,b]=testloadlibrary
try
library = [matlabroot, '\bin\win32\libmx.dll'];
header = [matlabroot, '\extern\include\matrix.h'];
alias = 'libmx';
loadlibrary(library, header, 'alias', alias);
libmethods(alias);
unloadlibrary(alias);
catch
disp(lasterr);
end
I receive the following error:
Output argument 'notfound' was not assigned during call to 'loadlibrary'.
2. I am able to compile the above code successfully, but at runtime I get one of the following two error messages:
Warning: Function call testloadlibcompile invokes inexact match
d:\work\testLoadLibCompile_mcr\testLoadLibCompile\testLoadLibCompile.m.
??? Error using ==> loadlibrary
Call to Perl failed. Possible error processing header file.
Output of Perl command:
Error using ==> perl
All input arguments must be valid strings.
Error in ==> testLoadLibCompile at 4
MATLAB:loadlibrary:cannotgeneratemfile
There was an error running the loader mfile. Use the mfilename option
to produce a file that you can debug and fix. Please report this
error to the MathWorks so we can improve this function.
??? Error using ==> feval
Undefined function or variable 'GHlinkTest_proto'.
Error in ==> loadtest at 6
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!