title: Is there a -rdynamic equivalent to build dll with Visual Studio?
body: <p>In a DLL (linked at runtime) I need to call functions statically linked in my application.</p>
  
  <p>I achieved to do this on the Linux side linking the application with the <code>-rdynamic</code> gcc option, but with Visual Studio I can't find a way to export all non-static symbols to dynamic libraries and to link the DLL without <code>unresolved symbol</code> errors.</p>
  
  <ul>
  <li>I don't really want to convert all my application in multiple DLLs and adding handy macros to handle the <code>_declspec(dllimport)</code>/<code>_declspec(dllexport)</code> properly.</li>
  <li>I neither don't want to pass all my API to DLLs by function pointers.</li>
  </ul>
  
  <p>Is there a better way to work around this issue?</p>