After doing some research, it turns out this is an easy problem to fix:
sudo ln -sn /usr/bin/g++ /usr/bin/g++-4.2sudo ln -sn /usr/bin/gcc /usr/bin/gcc-4.2
Inline and Rcpp seem to be working correctly now.