I followed microsoft documentation and stumbled at moment when DLL project should compile like this:
1>------ Build started: Project: MathLibrary, Configuration: Debug Win32 ------
1> stdafx.cpp
1> dllmain.cpp
1> MathLibrary.cpp
1> Creating library c:\users\username\documents\visual studio 2015\Projects\MathLibraryAndClient\Debug\MathLibrary.lib and object c:\users\username\documents\visual studio 2015\Projects\MathLibraryAndClient\Debug\MathLibrary.exp
1> MathLibrary.vcxproj -> c:\users\username\documents\visual studio 2015\Projects\MathLibraryAndClient\Debug\MathLibrary.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
But i compiling my DLL project successfully but i have less in output. And in a result my main app can't compile because "there is no .lib file of your DLL" as compiler said.
Output of DLL project looks like this:
1>------ Rebuild All started: Project: testDLL, Configuration: Debug Win32 ------
1>stdafx.cpp
1>dllmain.cpp
1>someClass.cpp
1>testDLL.cpp
1>Generating Code...
1>testDLL.vcxproj -> D:\stud\VStest\testDLL\Debug\testDLL.dll
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
My output obviously lacks "Creating library" part. I don't understand what's wrong, my VS is 2017.
P.S. what MS mean by that comment in CPP file?
// Compile by using: cl /EHsc /DMATHLIBRARY_EXPORTS /LD MathLibrary.cpp