follow the step by step process: $ git remote add nsnam https://gitlab.com/nsnam/ns-3-dev.git $ git checkout ns-3.35 $ git pull nsnam ns-3.35 Then run the given "nr-v2x.cc" file.