'untitled_cgxe.mexw64' removed

I'm learning real-time audio processing with the webinar "Real-time Audio Processing for Algorithm Prototyping and Custom Measurements" (https://se.mathworks.com/videos/real-time-audio-processing-for-algorithm-prototyping-and-custom-measurements-121075.html) videos and scripts.
The scripts work well in Matlab, but when I try to run the simulink model as described in the video,
I got the following errors:
### Build procedure for model: 'untitled' aborted due to an error.
Problem creating simulation target for the model 'untitled'.
Component:Simulink | Category:Model error
Error(s) encountered while building simulation target MEX-file for model 'untitled'.
Caused by:
F:\code\matlab_dsp\myrealtime\slprj\_cgxe\untitled\src>"D:\Matlab 2018b\sys\lcc64\lcc64\bin\lccmake.exe" -f untitled_cgxe.lmk
cannot open 2018b\extern\lib\win64\microsoft
"D:\Matlab 2018b\sys\lcc64\lcc64\bin\lcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:\Matlab 2018b\extern\include" -I"D:\Matlab 2018b\simulink\include" -I"D:\Matlab 2018b\rtw\c\src" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime\slprj\_cprj" -I"D:\Matlab 2018b\sys\lcc64\lcc64\include64" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime\slprj\_cgxe\untitled\src" -I"D:\Matlab 2018b\toolbox\shared\spc\src_ml\extern\include" "untitled_cgxe.c"
"D:\Matlab 2018b\sys\lcc64\lcc64\bin\lcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:\Matlab 2018b\extern\include" -I"D:\Matlab 2018b\simulink\include" -I"D:\Matlab 2018b\rtw\c\src" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime\slprj\_cprj" -I"D:\Matlab 2018b\sys\lcc64\lcc64\include64" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime\slprj\_cgxe\untitled\src" -I"D:\Matlab 2018b\toolbox\shared\spc\src_ml\extern\include" "m_Gylj7rInPPNWHHI52iOhLH.c"
"D:\Matlab 2018b\sys\lcc64\lcc64\bin\lcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -nodeclspec -I"D:\Matlab 2018b\extern\include" -I"D:\Matlab 2018b\simulink\include" -I"D:\Matlab 2018b\rtw\c\src" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime\slprj\_cprj" -I"D:\Matlab 2018b\sys\lcc64\lcc64\include64" -I"F:\研究生\可听化\code\matlab_dsp\myrealtime\slprj\_cgxe\untitled\src" -I"D:\Matlab 2018b\toolbox\shared\spc\src_ml\extern\include" "untitled_cgxe_registry.c"
"D:\Matlab 2018b\sys\lcc64\lcc64\bin\lcclnk64.exe" -s -dll -L"D:\Matlab 2018b\sys\lcc64\lcc64\lib64" -entry LibMain -map sfun.map -o untitled_cgxe.mexw64 @untitled_cgxe.lmko
D:\Matlab 2018b\sys\lcc64\lcc64\bin\lccmake.exe: Error code 1
D:\Matlab 2018b\sys\lcc64\lcc64\bin\lccmake.exe: 'untitled_cgxe.mexw64' removed.
Thank you!

Answers (1)

jibrahim
jibrahim on 9 Jun 2026
The .mexw64 file is only being removed because the build failed — that is not the root problem.
The real error is
cannot open 2018b\extern\lib\win64\microsoft, which points to a linker/path issue during MEX generation. MATLAB expects that library folder under fullfile(matlabroot,'extern','lib','win64','microsoft'). [mathworks.com], [ww2.mathworks.cn]
In your log, MATLAB is installed under a path with a space (D:\Matlab 2018b\...) and your project path contains non-ASCII characters (F:\研究生\可听化\...). Those can break older R2018b/LCC build steps. [mathworks.com]
I would:
  1. Move the model to a short ASCII-only folder like C:\work\myrealtime
  2. Delete slprj and rebuild
  3. Run mex -setup to verify the compiler
  4. Check that fullfile(matlabroot,'extern','lib','win64','microsoft') exists
If available, switching to a supported Microsoft/MinGW compiler is also worth trying.

Categories

Find more on Audio Plugin Creation and Hosting in Help Center and File Exchange

Products

Release

R2018b

Tags

Asked:

on 16 Nov 2020

Answered:

on 9 Jun 2026

Community Treasure Hunt

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

Start Hunting!