C compiler cannot create executables

I have openSUSE 11.1 installed on my VM (VMWare sever). I installed gcc and gcc-c++. When I try to configure a program I get the error:

checking for c compiler default output file name…
configure: error: C compiler cannot create executables
See ‘config.log’ for more details.

I have searched forums and figured out I need to install build-essential. I found the equivalent for that would be:
zypper install -t pattern devel_C_C++

I also installed kernel-source and kernel-syms.

It’s really getting on my nerve:(

Is there any solution?

thanx

Did you install ‘make’ as well?

If this is for kernel development, start Yast - Software Management, and check the PATTERN ‘Linux Kernel Development’ for install. It will force the install of missing things.
If for the desktop, same for patterns KDE4 / Gnome Development.