title: How to add library to cross-compile toolchain?
body: <p>I am using Netbeans to cross-compile C++ code for raspberry pi with arm-linux-gnueabihf-raspbian. Compiling works fine and I am able to run programs on raspberry but I can't figure out how to add external library files such as RF24 or WiringPi. </p>
  
  <p>According some sources I should create a configure file to install libraries to toolchain but being a newbie to linux, I have no idea how. What should I do?</p>