I met a fatal error in my simulation yesterday. This is a matlab-carsim cosimulation project. It was working well one week ago. However, when I rebuilt the functions and try to start the same project as before. I noti there is a fatal error, the detail looks like this:
Error evaluating 'OpenFcn' callback of SubSystem block
'test_integratedAAWS/Click to compile the toolbox'. Callback
string is 'cd(fileparts(which(gcs))) curdir = cd; cd('../
GRAMPC_v2.2/matlab/') make clean cd(curdir)'
In file included from ....\include/grampc_run.h:18:0, from E:
\Simulation\MPC_0613AAWS\MPC\GRAMPC_v2.2\matlab\bin
\grampc_run.c:15: ....\include/grampc_init.h:21:20: fatal error
stdlib.h: No such file or directory compilation terminated.
The Error picture has been attached also.
Would you mind help me fix this problem? It is really weird.
do you use a version control system (e.g. Git)? If yes, you could check which files have been changed between now and the last time it worked.
Otherwise, if it previously worked well and only failed now, I would try to delete all build-related files (i.e. clean the whole workspace) and attempt a full rebuild of all project-related files.
You could also check whether you can compile GRAMPC and your probfct on its own, that is, without using Simulink.
Best regards,
Andreas Völz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Everyone,
I met a fatal error in my simulation yesterday. This is a matlab-carsim cosimulation project. It was working well one week ago. However, when I rebuilt the functions and try to start the same project as before. I noti there is a fatal error, the detail looks like this:
Error evaluating 'OpenFcn' callback of SubSystem block
'test_integratedAAWS/Click to compile the toolbox'. Callback
string is 'cd(fileparts(which(gcs))) curdir = cd; cd('../
GRAMPC_v2.2/matlab/') make clean cd(curdir)'
In file included from ....\include/grampc_run.h:18:0, from E:
\Simulation\MPC_0613AAWS\MPC\GRAMPC_v2.2\matlab\bin
\grampc_run.c:15: ....\include/grampc_init.h:21:20: fatal error
stdlib.h: No such file or directory compilation terminated.
The Error picture has been attached also.
Would you mind help me fix this problem? It is really weird.
Thank you so much and wish you have a good day!
Mengke
Dear Mengke,
do you use a version control system (e.g. Git)? If yes, you could check which files have been changed between now and the last time it worked.
Otherwise, if it previously worked well and only failed now, I would try to delete all build-related files (i.e. clean the whole workspace) and attempt a full rebuild of all project-related files.
You could also check whether you can compile GRAMPC and your probfct on its own, that is, without using Simulink.
Best regards,
Andreas Völz