Possible to distribute shared .dll without requiring end users to have C compiler?

Hello,
Our software product will launch MATLAB with a script we generate, and then MATLAB will call back into our product by means of a dll using loadlibrary()/calllib().
It seems that using loadlibrary()/calllib() requires MATLAB end users to have a C compiler on their system.
Is there any way around this requirement that works for both 32/64 bit versions?
Thanks, James

 Risposta accettata

3 Commenti

Yup! Everything I know about advanced compilation, I learned from paying attention to Kaustubha's posts!
Thanks for your help!
Is it correct that I would only have to distribute the prototype file and the thunk dll file? No .h, and no gcc or perl is necessary on the user's side? Thanks again.
@Walter: Thank you for the kind words. I'm glad to have added to your limitless knowledge of MATLAB. :)
@James: Yes, you've understood that correctly. You will only need to add the prototype .m file and .dll file to the CTF archive, no need for .h and installed compilers.

Accedi per commentare.

Categorie

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by