Hi,
I'm building (or attempting) a standalone .exe of a function I use often. It is a process that I wish to run continuously on a server. The function has many depandancies in a large folder with several subfolders. This directory is rigid and not only I use it. Furthermore, the function has successfully been compiled before, but I don't know why these errors exist now.
My command for generating the executable
mcc -o output_fcn_name ...
-v X:\folder\sub_folders\fcn_name.m
This code is based on unsuccessful attempts using the deploytool. When using the deploytool the executable does not show the disp('') commands I've put throughout the function to track my progress. However, this command results in the following error:
'[missing_function_name]' is not found in the current folder or on the MATLAB path, but exists in:
C:\folder\sub_folders
Change the MATLAB current folder or add its folder to the MATLAB path.
This is strange for several reasons:
- The function IS on the Matlab path when compiling. I can call it and which -all missing_function_namme returns the location
- Adding the function to the mcc command line by -a C:\folder\sub_folders\missing_function_namme.m does not correct the error
- I can see the function in the C:\Users\usr_name\AppData\Local\Temp\usr_name\mcrCache9.3\ folder in the correct folder\subfolder
- This error is thrown deep in the executable function. Several functions in the same overall C:\folder\sub_folders\ has been successfully called
I can solve the issue by putting the function in the current folder, but it then throws the same error for the next subfunction from that same folder tree.
I'm working on some X:\ drive calling dependancies from the C:\ drive if that is relevant. My working directory is X:\folder\sub_folder
Any suggestions?
Thank you!
Doesn't fix the error either
EDIT: spelling errors