Library compiler Error while packaging MATLAB functions into a C++ library and create a Dynamic Linking Library (DLL)
I am converting MATLAB functions into a C++ library and create a Dynamic Linking Library (DLL) using LIbrary Compiler. I am using Matlab 2023a and Microsoft Visual Studio 2017. It was working fine. But when I formatted the system and reinstalled everything, it is giving the following error while packaging-
""C:Program FilesMATLABR2023abinmbuild" -client mbuild -O -v -output "test" -I"D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testing" "D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testingtest.cpp" DEFFILE"=""D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testingtest.def""" LINKEXPORT"=""/DLL /def:"$DEFFILE"""" LDEXT"="".dll""" LDTYPE"="" -shared -static""" MTCMDLINE"=""mt -outputresource:$EXE;2 -manifest $MANIFEST""" -outdir "D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testing""
failed with error code -1.
mcc failed
Please suggest, where am I going wrong.I am converting MATLAB functions into a C++ library and create a Dynamic Linking Library (DLL) using LIbrary Compiler. I am using Matlab 2023a and Microsoft Visual Studio 2017. It was working fine. But when I formatted the system and reinstalled everything, it is giving the following error while packaging-
""C:Program FilesMATLABR2023abinmbuild" -client mbuild -O -v -output "test" -I"D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testing" "D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testingtest.cpp" DEFFILE"=""D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testingtest.def""" LINKEXPORT"=""/DLL /def:"$DEFFILE"""" LDEXT"="".dll""" LDTYPE"="" -shared -static""" MTCMDLINE"=""mt -outputresource:$EXE;2 -manifest $MANIFEST""" -outdir "D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testing""
failed with error code -1.
mcc failed
Please suggest, where am I going wrong. I am converting MATLAB functions into a C++ library and create a Dynamic Linking Library (DLL) using LIbrary Compiler. I am using Matlab 2023a and Microsoft Visual Studio 2017. It was working fine. But when I formatted the system and reinstalled everything, it is giving the following error while packaging-
""C:Program FilesMATLABR2023abinmbuild" -client mbuild -O -v -output "test" -I"D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testing" "D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testingtest.cpp" DEFFILE"=""D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testingtest.def""" LINKEXPORT"=""/DLL /def:"$DEFFILE"""" LDEXT"="".dll""" LDTYPE"="" -shared -static""" MTCMDLINE"=""mt -outputresource:$EXE;2 -manifest $MANIFEST""" -outdir "D:SCATTER_CORRECTIONkernel_basedsc_dll_thoraxtestfor_testing""
failed with error code -1.
mcc failed
Please suggest, where am I going wrong. library compiler, dll, c++ shared library, matlab compiler, embedded matlab function, compiler, application compiler, cpp MATLAB Answers — New Questions