title: Node C++ Module Shared Library
body: <p>I am trying to create a Node C++ module for the purpose of interfacing with the Steam api. The library file is ./steam/lib/linux64/libsteam_api.so, and header files are in ./steam.</p>
  
  <p>I have created a small regular C++ file for testing, which successfully uses the Steam api, imported using <code>#include "steam_api.h"</code>. I have complied and imported the shared library like this: <code>g++ -L./steam/lib/linux64 -Wl,-rpath=./steam/lib/linux64 -Isteam -lsteam_api main.cpp</code></p>
  
  <p>binding.gyp:</p>
  
  <pre><code>{
   "targets": [ {
    "target_name": "steam",
    "sources": [ "steam.cpp" ],
    "include_dirs": [
     "steam",
     "&lt;!@(node -p \"require('node-addon-api').include\")"
    ],
    "cflags!": [ "-fno-exceptions" ],
    "cflags_cc!": [ "-fno-exceptions" ],
    "libraries": [ "./steam/lib/linux64/libsteam_api.so" ]
   } ]
  }
  </code></pre>
  
  <p>When I try to compile the Node module using node-gyp, I get g++: error: ./steam/lib/linux64/libsteam_api.so: No such file or directory</p>
  
  <p>How do I correctly import the shared library?</p>