Though this question is there since March 2017. Just want to share my experience with cuda::bilateralFilter(..).
Since I use Nsight Eclipse Edition on Ubuntu, my answer may not be a direct one. The linking error is primarily due to the non-inclusion of opencv_cudacodec library in the linker.