Azzera filtri
Azzera filtri

Error using construct_error (line 108)

3 visualizzazioni (ultimi 30 giorni)
Sam Martin
Sam Martin il 22 Mag 2012
I have MATLAB R2012a student edition and am running it on my MacBook Air. I have had no issues until now. I am trying to run a SIMULINK model to maintain 4 tank levels. It was running fine until I added in a User-Defined MATLAB Function block. Now when I run it I get a Build Error message from a source that is Unknown which is reported by Stateflow. The summary of the message is this: When the current directory contains a space character, it causes the generated makefiles to not work.
Please change the current directory to a different directory path that does not have a space character in its name. In the command window, I also get this message: Error using May_22_v5 (line 22) Error using construct_error (line 108) When the current directory contains a space character, it causes the generated makefiles to not work.
Please change the current directory to a different directory path that does not have a space character in its name.
I have searched how to fix this and have found that there is a possibility that there are files missing in the mex folder. I think that was right. I have uninstalled and then installed again but I still get the same issue. I purchased this from the website and have a legit licence and am fully registered to use it, so why am I missing files?? And more importantly, how do I fix it? Sam.

Risposte (1)

Frederic Terrettaz
Frederic Terrettaz il 16 Nov 2012
Hi Sam,
When you do a new install of Matlab, you need to run again "mex -setup" to choose your favorite compiler.
Rds,
Fred

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by