title: sal.h not including when it is in Path
body: <p>I'm working on implementing DirectSound into a program, but it requires dsound.h which requires sal.h, and for whatever reason I'm having trouble getting g++ to recognize the fact that I <em>have</em> sal.h and it is <em>in the path file</em> and I can even type in the direct command <code>sal.h</code> and command prompt will open sal.h.  But when I compile with</p>
  
  <p><code>g++-3 World.cpp -c</code></p>
  
  <p>I get</p>
  
  <p><code>dsound.h:13:17: sal.h: No such file or directory.</code></p>
  
  <p>followed by thousands of errors from dsound.h resulting from the lack of sal.h.  I'm just using notepad, g++, and command prompt, do I need to be in VC++ for sal.h to work?  Is there any way to use DirectSound without it?</p>
  
  <p>Here's the opening to the code I'm compiling, just in case:</p>
  
  <pre><code>#include "WorldEntity.h"
  #include "MBox.h"
  #include &lt;D3D9.h&gt;
  #include &lt;d3dx9.h&gt;
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  
  #define _USE_MATH_DEFINES
  #include &lt;math.h&gt;
  
  #define KEYDOWN(vk_code)((GetAsyncKeyState(vk_code) &amp; 0x8000) ? 1 : 0)
  #define KEYUP(vk_code)((GetAsyncKeyState(vk_code) &amp; 0x8000) ? 0 : 1)
  
  using namespace std;
  
  World::World()
  {
  //Etc
  </code></pre>
  
  <p>Here is the beginning of WorldEntity.h, the included file that includes dsound.h:</p>
  
  <pre><code>#ifndef WORLDENTITY_H
  #define WORLDENTITY_H
  
  class Entity;
  class HUD;
  
  #include "Enums.h"
  
  #include "Object.h"
  #include "Inventory.h"
  #include "AI.h"
  #include "Item.h"
  #include "Sector.h"
  #include "MBox.h"
  #include "Particle.h"
  #include "Sprite.h"
  #include &lt;windows.h&gt;
  #include &lt;windows.h&gt;
  #include &lt;mmsystem.h&gt;
  #include &lt;mmreg.h&gt;
  #include &lt;dsound.h&gt;
  #include &lt;string&gt;
  #include &lt;D3D9.h&gt;
  #include &lt;d3dx9.h&gt;
  #include &lt;cstdlib&gt;
  #include &lt;ctime&gt;    
  
  using namespace std;
  
  enum FontIndex
  {
  //Etc
  </code></pre>