Hi and welcome to LQ. I would use YAST to install packages. YAST -> Software Management and search for gcc. If you use openSUSE 10.3 you can do
#zypper install gcc
The methods described above will install the packages from the installation discs or online repositories depending on which discs you have and which repos you setup.