title: "Function has no address" despite disabled optimization (/Od)
body: <p>During debug in MSVC 2012, I am attempting to call some functions from the Watch window in order to dump data to files. However, I keep getting this error:</p>
  
  <pre><code>Function Matrix::Save has no address, possibly due to compiler optimizations.   
  </code></pre>
  
  <p>The class <code>Matrix</code> is located in my own external library. A quick check showed that none of the methods in external libraries have addresses and all attempts to call them from Watch return this error, except for those which are defined in the header files. The methods in the main project all have addresses regardless of where they are defined.</p>
  
  <p>Optimization is disabled throughout the solution, of course. Symbols are loaded normally. How do I fix it?</p>