title: Build a DLL (without entry point) from the command line with MSVC
body: <p>I want to use MSVC compiler to build a DLL file.</p>
  
  <p>The problem is that the DLL doesn't have a main entry point. It's supposed to be a shared DLL used as a plug-in by an application. I can compile it using GCC this way:</p>
  
  <p>gcc -c plugin.c
  gcc -shared -o plugin.dll plugin.o interface.def</p>
  
  <p>The DEF file is to evade name mangling in a function export of the plug-in (it is the way the application use the plugin, through that function).</p>
  
  <p>If I try to compile it using MSVC the linker complains that the entry point has to be defined.</p>
  
  <p>I would like to ask another question, is there a tool in the MS Visual Studio suite like the GCC "strip" to reduce file size of EXE's?</p>