title: Linux executable can't find shared library in same folder
body: <p>I am relatively new to Linux development, having been using Windows for a while now. Anyway, I am compiling a C++ game using g++ on both Windows and Linux (using mingw32 when needed), and am linking against SDL2 and SDL2_mixer. On Windows, one would only need to put the DLL files in the same folder as the executable and everything would run fine. On Linux however, although the code compiled just fine with not even a single warning, I get this at runtime :</p>
  
  <pre><code>./nKaruga: error while loading shared libraries: libSDL2_mixer-2.0.so.0: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>although said shared lib is in the same folder. I looked up several similar cases on Stack Overflow, all of them involving the use of <code>LD_LIBRARY_PATH</code>, and tried it but to no avail.</p>
  
  <pre><code>% LD_LIBRARY_PATH=pwd
  % export LD_LIBRARY_PATH
  % ./nKaruga
  ./nKaruga: error while loading shared libraries: libSDL2_mixer-2.0.so.0: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I want to distribute this program on systems that do not necessarily have admin rights to install dependencies, hence why I am putting the SO in the same folder as the executable.</p>
  
  <p>Thanks by advance !</p>