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

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 3월 14일

댓글 수: 3

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by