title: DirectX 12 D3DCompileFromFile doesn't work
body: <p>I'm learning DirectX 12. I got an error at D3DCompileFromFile() function.</p>
  <pre class="lang-cpp prettyprint-override"><code>    void Shader::CompileShader(const std::wstring&amp; path, const std::string&amp; name, const std::string&amp; version, ID3DBlob* shaderBlob) {
  #if defined(_DEBUG)
      // Enable better shader debugging with the graphics debugging tools.
      UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION;
  #else
      UINT compileFlags = 0;
  #endif
  
      ThrowIfFailed(D3DCompileFromFile(path.c_str(), nullptr, D3D_COMPILE_STANDARD_FILE_INCLUDE, name.c_str(), version.c_str(), compileFlags, 0, &amp;shaderBlob, &amp;mErrBlob));
  }
  </code></pre>
  <p>mErrBlob said &quot;Information not available, no symbols loaded for D3DCompiler_47.dll&quot;</p>
  <p><a href="https://i.stack.imgur.com/eG5uh.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>So I checked Microsoft Symbol Server option at Debug-Options-Debugging-Symbols. And then I got another error from mErrBlob which is &quot;No type information available in symbol file for D3DCompiler_47.dll&quot;</p>
  <p>HRESULT value is E_FAIL.</p>
  <p><a href="https://i.stack.imgur.com/C2rnJ.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>I don't know anymore how to fix this error.</p>