Dear Professor Fang,
Thank you for developing MCX and making it open-source!
Whilst MCXStudio seems to be working as expected, I am having some trouble using mcxlabcl in MATLAB 2026a. I am trying to compile the MEX file using the buildmcxcl.m script and current git repo version, and am able to make some progress, but the build fails with these errors.
```
mex cJSON.o mcx_host.o mcx_shapes.o mcx_tictoc.o mcx_utils.o mcxlabcl.o -output mcxcl -outdir ../mcxlabcl LINKLIBS='$LINKLIBS -lstdc++ -static 'C:\Windows\System32\OpenCL.dll' '
Building with 'MinGW64 Compiler (C)'.
Error using mex
C:/VSARM/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/16.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mcx_utils.o: in function `mcx_prep_polarized':
mcxcl/src/mcx_utils.c:1501:(.text+0xce2): undefined reference to `Mie'
C:/VSARM/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/16.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mcx_utils.o:mcx_utils.c:(.rdata$.refptr.translations[.refptr.translations]+0x0):
undefined reference to `translations'
C:/VSARM/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/16.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mcx_utils.o:mcx_utils.c:(.rdata$.refptr.languagename[.refptr.languagename]+0x0):
undefined reference to `languagename'
collect2.exe: error: ld returned 1 exit status
Error in buildmcxcl (line 110)
eval(sprintf('mex %s -output %scl -outdir ../%slabcl %s=''%s'' ', strjoin({fn.name}), pname, pname, linkvar, linkflags));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ```
Looking through the .c/.h files, I can't see why this would be the case and can only assume there's something in the environment that's causing problems. Am I missing something?
Thanks!