Please see below:
-pthread -std=c++11 -m64 -I/home/andreas/Software/Root/include -L/home/andreas/Software/Root/lib -lGui -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic
(i installed root to this directory so the path is correct)