title: How can I use node-gyp to run C++ code with node.js
body: <p><a href="https://github.com/TooTallNate/node-gyp/" rel="nofollow">Node-gyp</a> is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. I am trying to get my node program to run some C++ I've written. Node-gyp seems to make this process easier as in this <a href="https://github.com/joyent/node/tree/master/test/addons/hello-world" rel="nofollow">example</a>, which I was able to run by doing <code>node-gyp configure</code> followed by <code>node-gyp build</code> and then running with <code>node test.js</code></p>
  
  <p>I'm still having trouble understanding how to set up the <code>binding.cc</code> and <code>binding.gyp</code> files. Does anyone know whats going on or know of any good guides/documentation? </p>