If you get this kind of error at link time when compiling your BSP project, it is likely that you forgot to rebuild your Java platform before rebuilding the BSP project.
Note that once your platform is rebuilt, you will also need to rebuild your Java application to be able to link your BSP project.