rdesktop configure: error: C compiler cannot create executables

Today, I try to compile rdesktop on my Ubuntu laptop system. But I get wrong message.

root@wugi-laptop:/compile/rdesktop-1.6.0# ./configure
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details

After research in Google, I find it is caused by the package g++.

The issue can be solved after installing g++ package.

Refer to : http://ubuntuforums.org/showthread.php?t=45565&page=3