LD_LIBRARY_PATH vs LIBRARY_PATH

LIBRARY_PATH is used by gcc before compilation to search directories containing static and shared libraries that need to be linked to your program. LD_LIBRARY_PATH is used by your program to search directories containing shared libraries after it has been successfully compiled and linked. EDIT: As pointed below, your libraries can be static or shared. If … Read more

Missing include “bits/c++config.h” when cross compiling 64 bit program on 32 bit in Ubuntu

Adding this answer partially because it fixed my problem of the same issue and so I can bookmark this question myself. I was able to fix it by doing the following: sudo apt-get install gcc-multilib g++-multilib If you’ve installed a version of gcc / g++ that doesn’t ship by default (such as g++-4.8 on lucid) … Read more

g++ undefined reference to typeinfo

One possible reason is because you are declaring a virtual function without defining it. When you declare it without defining it in the same compilation unit, you’re indicating that it’s defined somewhere else – this means the linker phase will try to find it in one of the other compilation units (or libraries). An example … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)