How to disable import library generation?

I am creating a COM-DLL in Visual Studio. The compiler creates an import library for the DLL. I do not need an import library.

Is there a way to tell the linker not to generate it?

+4
source share
2 answers

Nine years later, this may turn out to be useless for AF, but it may be useful for others coming in search of a solution.

LINK.EXE supports a parameter /NOIMPLIBthat prevents the creation of an import library, even if there __declspec(dllexport)is a plugin DLLor EXE __declspec(dllexport).

, Linker. Command Line. , , . /NOIMPLIB , , .lib.

-- --

, .lib, , .exp . MS, , , - .

+3

, , : fooobar.com/questions/1404824/...

" .def, , PRIVATE, ".

0

Source: https://habr.com/ru/post/1725843/


All Articles