First of all, know that I'm very new to c++ and Ubuntu.
I have a program that I am trying to compile using GCC (my version is gcc 4.8.4) by using a makefile.The problem is that the executable file is created under a directory it works, but when its copied to any other (or even forced to be created there on the makefile) it says.
/usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
Also when i check for versions with strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX, i get:
GLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_3.4.9GLIBCXX_3.4.10GLIBCXX_3.4.11GLIBCXX_3.4.12GLIBCXX_3.4.13GLIBCXX_3.4.14GLIBCXX_3.4.15GLIBCXX_3.4.16GLIBCXX_3.4.17GLIBCXX_3.4.18GLIBCXX_3.4.19GLIBCXX_DEBUG_MESSAGE_LENGTH
As far as I've been reading on the internet the problem is GLIBCXX_3.4.20 is only supported by gcc 4.9 and above while I am using 4.8.4, but still, I don't get why it would work in a specific directory and not in others.
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4)
As I don't have permissions to update gcc, I would like to know what can I do to solve this...What things should I avoid to use on the code that are requiring GLIBCXX_3.4.20?Can I force the compiler to use an older version of that lib somehow or include that specific library in the binary file? (I can't understand why it would work in a directory if I don't have the needed lib)
Thanks in advance and sorry if my question is dumb or makes no sense, as I said I'm very new to this all.