Originally Posted by Stephen Warren
You don't have all the required development packages installed (i.e. header files, lib .so symlinks).
Are you sure? I had this error in fact when the nvidia vdpau libraries and header files where not in place, which happens, as an example, when using wrong packages / ebuilds.