How to share DLL (mex) between matlab 2008 and 2012

1 view (last 30 days)
We are supporting third party by providing DLL (mex) file. The third party is using 2008b version, and our DLL (mex) was working fine with them. However, we updated MATLAB to 2012a recently, our DLL (mex) couldn't be used by them anymore. Without asking they to upgrade their MATLAB, is there any other alternative solution? what if it is 2008b 32bit? how about 64x ? thanks a lot

Answers (1)

Jan
Jan on 31 Oct 2012
I have about 80 C-Mex functions, which run fine under Matlab 2008a to 2011b, as long as the 32/64bit version matchs. It does not matter if I compile them in 2008a, 2009b or 2011b, when I do not use the -inline flag for compiling. In addition I have to provide the runtime libs of the used compiler: When compiled under R2011b, which requires MSVC2010, the corresponding runtime libs must be installed on the R2008a computer also.
But this is not a guarantee for forward and backward compatibility. The documentation claims, that the compiled DLLs are not compatible. But as far as I can see, this is a pessimistic estimation.
You can check my compiled function for 2012a also: My precompiled files.

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) 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!