Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load custom code simulation #9

Open
xeeman opened this issue Aug 26, 2019 · 4 comments
Open

Failed to load custom code simulation #9

xeeman opened this issue Aug 26, 2019 · 4 comments

Comments

@xeeman
Copy link

xeeman commented Aug 26, 2019

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

@deng-haoyang
Copy link
Owner

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.

@gaorunzebit
Copy link

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.

@souravsanyal06
Copy link

Hi. I solved the issue by disabling the import custom code flag in simulation configurations

@JiaoShouMing
Copy link

1、type '' mex -setup'' command in matlab commandline
2、select ''Microsoft Visual C++'' instead of '' MinGW64 Compiler (C)''
image

note: i installed matlab2021a 、 visual studio 2019 and mingw6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants