title: 'TraceEvents' undefined; assuming extern returning int
body: <p>I am trying to convert our existing driver code that is <code>using makefile</code> to <code>visual studio 2013 with MSBUILD</code>.</p>
  
  <p>I have include all the header files and source code. The project is created as<code>KMDF driver</code>.</p>
  
  <p>I have enabled<code>WPP tracing</code>, and inserted 3 parameters that we use  </p>
  
  <pre><code>-km (in trace kernel-mode components --&gt; Yes (-km) )  
  
  -func (in functions to generate trace messages --&gt; TraceEvents(LEVEL,FLAGS,MSG,...))  
  
  -gen (in specify template file --&gt; {km-WdfDefault.tpl}*.tmh)
  </code></pre>
  
  <p>When I build the project, error returns as:  </p>
  
  <pre><code>'TraceEvents' undefined; assuming extern returning int
  'DBG_PNP' : undeclared identifier
  </code></pre>
  
  <p>I am not sure why this is happening.
  I think I am missing some steps.
  Please direct me what I might have missed.</p>