Smart way to handle out of folder pathing?
显示 更早的评论
Hello, thanks for reading this,
I have a question about executable compiling, specifically when it deals with programs that reference functions, etc in other folders.
In the source code, I have no problems with pathing. My problem comes when I compile the code into a standalone exe, and suddenly references to function folders causes the exe to exhibit multiple errors.
What is a smart way to deal with pathing? When I run the standalone exe's on other computers, I can use the command line to output errors, and 99/100 problems that pop up have to do with pathing errors. What I've done in the meantime was remove all instances of pathing in my code, and brought every function, picture, etc into one folder. That made the exe work perfectly, but its a bit of a organizational nightmare.
Thanks for the advice!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!