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 Files\MATLAB\R2023a\bin\mbuild" -client mbuild -O -v -output "test" -I"D:\SCATTER_CORRECTION\kernel_based\sc_dll_thorax\test\for_testing" "D:\SCATTER_CORRECTION\kernel_based\sc_dll_thorax\test\for_testing\test.cpp" DEFFILE"=""D:\SCATTER_CORRECTION\kernel_based\sc_dll_thorax\test\for_testing\test.def""" LINKEXPORT"=""/DLL /def:\"$DEFFILE\"""" LDEXT"="".dll""" LDTYPE"="" -shared -static""" MTCMDLINE"=""mt -outputresource:$EXE;2 -manifest $MANIFEST""" -outdir "D:\SCATTER_CORRECTION\kernel_based\sc_dll_thorax\test\for_testing""
failed with error code -1.
mcc failed
Please suggest, where am I going wrong.

 採用された回答

Anshika
Anshika 2024 年 5 月 16 日
The error is resolved by reinstalling the Visual Studio.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeC Shared Library Integration についてさらに検索

製品

リリース

R2023a

質問済み:

2024 年 5 月 13 日

回答済み:

2024 年 5 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by