title: Trouble including NSS header Files
body: <p>Very recently, I had this idea to start using Mozilla NSS and to learn to use it, so that somewhere in the future, i can use it, or can atleast start contributing to it.</p>
  
  <p>So i went to its <a href="https://developer.mozilla.org/en-US/docs/NSS_Sources_Building_Testing" rel="nofollow">Website</a> and cloned it source code into a director "NSS" using mercurial</p>
  
  <p>Then I used</p>
  
  <pre><code>make nss_build_all
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>gmake nss_build_all
  </code></pre>
  
  <p>Note : I don't know, if it makes a difference, gmake is just GNU Make</p>
  
  <p>This make command created a dist folder outside the nss folder. So, Now my NSS folder has 3 folders nss,nspr,dist.</p>
  
  <p>In .bashrc i added a line at the end </p>
  
  <pre><code>export LD_LIBRARY_PATH=/home/ayusun/workspace/NSS/dist/Linux3.5_x86_glibc_PTH_DBG.OBJ/lib
  </code></pre>
  
  <p>Then i went over to <a href="https://developer.mozilla.org/en-US/docs/NSS/nss_sample_code/NSS_Sample_Code_Sample1" rel="nofollow">this</a> Sample code, did a copy paste and saved it in my NSS Folder.
  And then i tried to compile it, but it failed, stating it couldn't find iostream.h, I went over and changed the location of header files</p>
  
  <p>So</p>
  
  <pre><code>&lt;iostream.h&gt; became &lt;iostream&gt;
  "pk11pub.h" became "nss/lib/pk11wrap/pk11pub.h"
  "keyhi.h" became "nss/lib/cryptohi/keyhi.h"
  "nss.h" became "nss/lib/nss/nss.h"
  </code></pre>
  
  <p>I tried compiling again but this time error came, that it couldn't find "planera.h"
  which is actually present in dist/*.OBJ/include/ which is a link to a file planeras.h in nspr</p>
  
  <p>And so i don't know, how to include these files anymore.</p>
  
  <p>I always have trouble when it comes to include 3rd party header files.</p>
  
  <p>Thanks</p>