title: using 3rd party library (libconfig) with Qt (C++)
body: <p>I'm having trouble getting a third party library (libconfig++) to work in Qt.</p>
  
  <p>When compiling in Qt, I get error messages such as:</p>
  
  <pre><code>undefined reference to `_imp___ZN9libconfig6ConfigC1Ev'
  undefined reference to `_imp___ZN9libconfig6Config8readFileEPKc'
  undefined reference to `_imp___ZNK9libconfig6Config5writeEP6_iobuf'
  </code></pre>
  
  <p>etc.</p>
  
  <p>In my .pro file, I have:</p>
  
  <pre><code>LIBS += -L$$PWD/libconfig/lib -lconfig++
  </code></pre>
  
  <p>And I've added libconfig++.dll and libconfig++.lib to the correct folder.</p>
  
  <p>This project uses another 3rd party library (in a similar way) successfully so I don't think it's a syntax or include problem.</p>
  
  <p>It seems like it might be a C++ name mangling issue? How can I confirm this?</p>
  
  <p>Right now, I build the library in VS 2008 (I've tried building it both as a dynamic and static library, neither work). I think I've been able to do this in the past with other libraries. Is there some flag in VS that I'm not setting correctly?</p>
  
  <p>Thanks</p>