Open xeeman opened 5 years ago
Hi xeeman,
It seems some users have encountered the same problem, but currently, I don't know where the problem is. Could u delete the slprj_slcc folder and try it again? Or "clear mex" might help.
Hello Haoyang:
I met the same question. It seems when run Simulink, the floder slprj/slcc would be created automatically. Then the same error happened. But now I dont know the reason. Have you figured it out? Thank you.
Hi. I solved the issue by disabling the import custom code flag in simulation configurations
1、type '' mex -setup'' command in matlab commandline 2、select ''Microsoft Visual C++'' instead of '' MinGW64 Compiler (C)''
note: i installed matlab2021a 、 visual studio 2019 and mingw6.3
Dear Deng, I have tried the Quadcopte example, but the simulink file at the last step didnt run. I t gives me this error:
Failed to load custom code simulation library:D:\Users\sanim\Documents\MATLAB\MPC\ParNMPC\Quadrotor\slprj_slcc\oSDpra6UYTzTcubJVwU2TH\oSDpra6UYTzTcubJVwU2TH_cclib.dll Component:Simulink | Category:Model error