How to generate empty definitions given a header file
<p>I have a 3rd-party library which for various reasons I don't wish to link against yet.  I don't want to butcher my code though to remove all reference to its API, so I'd like to generate a dummy implementation of it.</p>

<p>Is there any tool I can use which spits out empty definitions of classes given their header files? It's fine to return nulls, false and 0 by default.  I don't want to do anything on-the-fly or anything clever - the mock object libraries I've looked at appear quite heavy-weight?  Ideally I want something to use like</p>

<pre><code>$ generate-definition my_header.h &gt; dummy_implemtation.cpp
</code></pre>

<p>I'm using Linux, GCC4.1</p>
