compiling problem

Hi

I am having compiling problem. Error is printed below.

cc VFT.c -lm

ucbcc: warning: Option -YP,

:/usr/ucblib:/opt/workshop/SUNWspro/WS6U2/bin/../lib:

/opt/Workshop/SUMWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib

passed to ld, if ld is invoked, ignored otherwise

ld warning: option -YP appears more than once, first setting taken

Thank you

metals

[405 byte] By [metals] at [2007-11-26 8:38:59]
# 1
It looks like the system picks wrong 'cc' due to your [b]PATH[/b] settings. If the output of [b]which cc[/b] is [b]/usr/ucb/cc[/b], it's wrong. It should point to Sun Studio installation directory, usually [b]/opt/SUNWspro/bin/[/b]
MaximKartashev at 2007-7-6 22:13:34 > top of Java-index,Development Tools,Solaris and Linux Development Tools...