Clear Filters
Clear Filters

Error using construct_error (line 108)

3 views (last 30 days)
Sam Martin
Sam Martin on 22 May 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.

Answers (1)

Frederic Terrettaz
Frederic Terrettaz on 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

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!