title: Undefined reference Json::Value and Json::Reader
body: <p>When I run the following code:</p>
  
  <pre><code>#include &lt;cstdio&gt;
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;cstring&gt;
  #include &lt;C:\Users\User\Documents\jsoncpp-master\dist\json\json.h&gt;
  #include &lt;C:\Users\User\Documents\jsoncpp-master\dist\json\json-forwards.h&gt;
  
  using namespace std;
  
  int main(){
      Json::Value root;
      Json::Reader reader;
  
      ifstream file("test.json");
  
     return 0;
  }
  </code></pre>
  
  <p>I get the following errors:</p>
  
  <pre><code>undefined reference to `Json::Reader::Reader()'
  undefined reference to `Json::Value::Value(Json::ValueType)'
  </code></pre>
  
  <p>I am trying to write a program to read the JSON file and this code also has to output the data in the JSON file to be used by another C++ module.</p>
  
  <p>UPDATE</p>
  
  <pre><code>#include &lt;cstdio&gt;
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;cstring&gt;
  #include "dist\jsoncpp.cpp"
  using namespace std;
  
  int main(){
  
      Json::Value root;
      Json::Reader reader;
  
      ifstream file("test.json");
  
      return 0;
  }
  </code></pre>
  
  <p>I have the changed the code to remove the full link and inserted the dist folder I got after I ran:</p>
  
  <pre><code>python amalgamate.py
  </code></pre>
  
  <p>And I entered the header files into C:\MinGW\include</p>
  
  <p>I am now getting a lot of errors in the jsoncpp.cpp file (this is the file I got after running the python command and I did not change it at all). All the errors 
  say the same message, which is:</p>
  
  <pre><code>first defined here
  </code></pre>