License Checkout error in standalone application
Show older comments
I've been given a bunch of p-code that I'd like to compile into a .dll. I used the matlab compiler from the GUI, I added all the p-code to the project, made sure all matlab toolboxes were on the path and built the .dll by pushing build.
Then I proceeded to program something in C++ in Visual Studio 2010 that will call into the shared library. I had to include the auto-generated header and lib file as well as mclmcrrt.lib from the 64-bit MCR in the visual studio compile.
When I run the result visual studio .exe, I get an error from the matlab compiled .dll that says "Unable to checkout license file for pathManager.p" (a file in my code). Why is this? I thought the point of the MCR was to be able to deploy standalone applications?
I did not write the p-code. Is it possible they used a toolbox that I don't have on my path?
Thanks in advance for any insight.
4 Comments
Aaron
on 1 Aug 2013
Walter Roberson
on 1 Aug 2013
Note: after a run (from the MATLAB prompt) you can figure out which toolboxes were used by using
license('inuse')
Aaron
on 1 Aug 2013
Aaron
on 1 Aug 2013
Answers (0)
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!