Moving the mex file from one folder to other

I tried to compile the simulink model. i got the following : ----------------------------------------------------- Make successful for machine: "model_name"
moving .mexw32 from D:\folder1 to D:\folder2 failed. -----------------------------------------------------
What could be the issue?

 Accepted Answer

Walter Roberson
Walter Roberson on 9 Feb 2016
Edited: Walter Roberson on 9 Feb 2016
D:\folder2 might not exist, or it might not be writable by you, or the mexw32 might already exist in that directory and not be writable by you, or the drive might be full.

4 Comments

The error i got is this
---------------------------------------------------------------------------------------
Make successful for machine: "Cem_Occluded_Object_Degraded_options"
The file name is too long. 0 file(s) copied.
moving Cem_Occluded_Object_Degraded_options_sfun.mexw32 from D:\SENSOR_SIMULATION\src_cm4sl\slprj\_sfprj\Cem_Occluded_Object_Degraded_options\_self\sfun\src
to
D:\SENSOR_SIMULATION\src_cm4sl failed.
Trial>>
---------------------------------------------------------------------------------
I do not see any reason for that error at the moment. The file names are long, but they are within the limits for MS Windows, MAX_PATH is 260 and even the total command to do the movefile should come out shorter than that (unless perhaps the command generated is so foolish as to specifically call out movefile from the Windows directory... but the facility is documented as using internal code since the days of Windows XP...)
Its a trial version, will this create an issue?
No, a trial version should be fully function except that it creates watermarks on reports.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!