It seems that you did not compile the program with the corresponding standard library flag. If you want to compile for C ++ 11, you should use:
g++ --std=c++0x -o ...
The --std flag sets the appropriate level of language compatibility. If this does not help, send error messages that you received as a list of sources.
grundprinzip
source share