Error in building C++ shared Library

22 Ansichten (letzte 30 Tage)
Anshika
Anshika am 14 Mai 2024
Beantwortet: Anshika am 16 Mai 2024
I am getting this error, when I am building cpp shared library with dlls.
Building with 'Microsoft Visual C++ 2017'
LINK: fatal error LNK1181: cannot open inputt file 'gdi32.lib'
Error using compiler.internal.build.builder.Generic/build
The following command:
""C:\Program Files\MATLAB\R2023a\bin\mbuild" -client mbuild -O -output "mwa_Addmatrix" -I".\mwa_AddmatrixcppSharedLibrary"
".\mwa_AddmatrixcppSharedLibrary\mwa_Addmatrix.cpp" DEFFILE"="".\mwa_AddmatrixcppSharedLibrary\mwa_Addmatrix.def""" LINKEXPORT"=""/DLL
/def:\"$DEFFILE\"""" LDEXT"="".dll""" LDTYPE"="" -shared -static""" MTCMDLINE"=""mt -outputresource:$EXE;2 -manifest $MANIFEST""" -outdir
".\mwa_AddmatrixcppSharedLibrary""
failed with error code -1.
Error in compiler.build.cppSharedLibrary (line 115)
resultsobj = builder.build;

Akzeptierte Antwort

Anshika
Anshika am 16 Mai 2024
It is solved by reinstalling the visual studio.

Weitere Antworten (0)

Kategorien

Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by