gcc 4.3 compiler problems

I have been using SUSE for 2 days.
I installed gcc 4.3 using Yast, but
cc1 was not found by gcc. I added cc1
to my path, and now I am getting lots
of compile errors for a simple ‘hello world’
program because standard header
files are not found.

/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
In file included from /usr/include/stdio.h:75,
from hello.c:1:
/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /usr/include/stdio.h:75,
from hello.c:1:

What is the fix for this?

Thanks.

Do you have glibc glibc-devel.

Make sure you have the package gcc installed. If you want to compile sources you need a couple of packages so I would recommend choosing the development pattern in YaST2 and install all packages it lists.

Philipp

You need to install the package gcc, not gcc43. Besides that, make sure you have at least the packages binutils and glibc-devel installed.

well i would suggest you to search for gcc in the search section of yast software management module and install all those it displays… it shud work then.
hope this helps…

Best regards
Tanmaya