I have a Visual C++ DLL project (just a project, without parent solution) and need to build the DLL.
Build command doesn’t generate any error messages. In the Debug folder there is mylibrary.lib, but no mylibrary.dll.
I looked at Visual Studio 2010 C++ DLL project – No output DLL file!, but my case differs from that question. In the build output, there is no message like
MFCInterop.vcxproj -> C:\temp\sotest\Debug\MFCInterop.dll
only
MFCInterop.vcxproj -> C:\temp\sotest\Debug\MFCInterop.lib
What can I do in order to generate the DLL file?
It may happen if your DLL does not expose anything.
Normally public API classes of your DLL should be exposed using following construction:
Then you have to define YOUR_DLL_EXPORTS inside DLL project.
If you don’t have exposed stuff DLL is not generated. I hope this helps.