Managing Dependencies when Compiling Code in Linux
Show older comments
I am trying to compile a Matlab code in Red Hat. The code consists of 2 .m files, where one of them is the main one (mainfile.m - used to be a script, but had to convert to a function) and the other is a data import function (datafunction.m), which uses SQL to pull data from the database.
To create an executable file I used the following command:
/usr/local/bin/mcc -mv mainfile.m
datafunction.m is also located in the same folder. I assumed that the Compiler would automatically find dependencies between mainfile.m and datafunction.m.
However when I try to run the resulting run_mainfile.sh using a runtime library:
./run_FILENAME /usr/local/MATLAB/MATLAB_Runtime/v93
it fails at the point when it has to execute the datafunction.m.
Any ideas?
Thanks.
Accepted Answer
More Answers (1)
Giorgi Chanturia
on 25 Sep 2018
0 votes
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!