You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.
I'm getting these two errors when compiling with mexplus with Matlab R2018a.
It seems like the mxGetPi function that is used inside mexplus/mxarray.h is deprecated and no longer available in R2018a.
Error C3861 'mxGetPiIsDeprecated': identifier not found eos\3rdparty\mexplus\include\mexplus\mxarray.h 1013
Error C3861 'mxGetPiIsDeprecated': identifier not found eos\3rdparty\mexplus\include\mexplus\mxarray.h 1102
Is there an easy fix for this?
If not, don't worry too much about it - I am probably going to switch to the new Matlab C++ MEX API pretty soon, as soon as I find the time for it. It's pretty nice. Mathworks finally is giving us C++ bindings after 15+ (?) years of horrible C MEX API. link, link, link.
The text was updated successfully, but these errors were encountered:
The mex command in MATLAB seems to define the macro MX_COMPAT_32 or MEX_DOUBLE_HANDLE to swith back to the old API.
If you already build MEX functions, MEX S-functions, or standalone MATLAB engine and MAT-file applications, then you should review the Do I Need to Upgrade My MEX Files to Use Interleaved Complex API? topic. To help transition your MEX files and S-functions to the interleaved complex API, MATLAB maintains a compatibility interface. To build MEX files with the compatibility interface, use the mex -R2017b flag. If your code processes complex numbers, you might notice a performance impact as MATLAB adapts your data to the interleaved complex format.
The mex command uses the -R2017b API by default. However, in a future version of MATLAB, mex will use the interleaved complex API -R2018a by default and then you need to modify your build command. Therefore, to ensure the desired behavior across versions of MATLAB, add the compatibility flag -R2017b to your build scripts.
Hi!
I'm getting these two errors when compiling with mexplus with Matlab R2018a.
It seems like the
mxGetPi
function that is used insidemexplus/mxarray.h
is deprecated and no longer available in R2018a.Is there an easy fix for this?
If not, don't worry too much about it - I am probably going to switch to the new Matlab C++ MEX API pretty soon, as soon as I find the time for it. It's pretty nice. Mathworks finally is giving us C++ bindings after 15+ (?) years of horrible C MEX API. link, link, link.
The text was updated successfully, but these errors were encountered: