Ouch, where did you install gcc from? I found it extremely difficult to select developer tools package from the mandrake system if you miss selecting it at time of installation, I think you actually need to run the installer again and select it from there and it will add it to your current installation.