title: Linking POCO C++ Library gives numerous memory leaks
body: <p>I've just started trying to integrate the <a href="http://pocoproject.org/index.html" rel="nofollow noreferrer">Poco</a> C++ Library with our game engine, however every time I link /usr/lib/libPocoFoundation.so my program suddenly has 51 memory leaks. Removing the link option gets rid of all the leaks (none of them are from my code). This happens even if I remove all Poco <code>#include</code>s from my c++ files.</p>
  
  <p>I doubt there are really 51 memory leaks with Poco's Foundation (core) methods - searching their forums didn't reveal anything, and I'm sure other users would notice something this glaring. I think it is more likely a problem with how I'm linking to Poco?</p>
  
  <p>I'm on Ubuntu 11, using Code::Blocks for an IDE, g++ 4.5.2 to build, and fetched Poco 1.3.6p1-1build1 from the ubuntu ppa (<code>sudo apt-get install libpoco-dev libpoco-doc</code>).</p>
  
  <p>Any suggestions on what the problem could be are most welcome! The only thing I can think of is that I'm not linking Poco correctly.</p>
  
  <p>Possibly related: The OP at <a href="https://stackoverflow.com/questions/6042183/c-poco-lib-linking-error-when-trying-static-linking-vs9-express">c-poco-lib-linking-error-when-trying-static-linking-vs9-express</a> mentions something about "Added Preprocessor flags Foundation_EXPORTS POCO_STATIC PCRE_STATIC" - what would that do? I can't see any information on the Poco reference pages about how to correctly link Poco.</p>