Include library path in MATLAB coder
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fabio Canesin
am 16 Mär. 2017
Beantwortet: Ryan Livingston
am 17 Mär. 2017
I'm using MATLAB Coder to generate C code and on the original MATLAB I call a mex file. I do have a C interface for that, but how can I provide additional library path for the coder compiler ?
My code is:
function [ res ] = crtfwd(rad, rh, rv) %#codegen
res = zeros(1, 234);
if coder.target('MATLAB')
res = rtfwd(rad, rh, rv);
else
nrad = int32(numel(rad));
coder.ceval('wrtfwd', nrad, ...
coder.rref(rad), coder.rref(rh), coder.rref(rv), coder.wref(res));
end
end
I have the .lib for wrtfwd, but how do I provide this path to Coder ?
0 Kommentare
Akzeptierte Antwort
Ryan Livingston
am 17 Mär. 2017
You can use coder.updateBuildInfo to do that:
Alternatively you can also just pass the LIB file to codegen:
codegen foo -args {1} wrtfwd.lib
or use coder.ExternalDependency:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!