compiler installation

Hi

I'm quite new to solaris and I need to generate some executables on my Solaris 9 box using make files. In the make file I've the compiler set as follow "CC = cc"

I tried to use /usr/ucb/cc but doesn't work

then I've installed gcc 3.3.2 and use it (changing my mk file form "CC = cc" to "CC = gcc" but I receive the following error

gcc: cannot specify -o with -c or -S and multiple compilations

Anyone can help me?

Best Regards

Paolo

[489 byte] By [superpippoa] at [2007-11-27 5:07:50]
# 1

Hi Paolo,

I suggest you download and install Sun Studio 12, which can be found at http://developers.sun.com/sunstudio/downloads/index.jsp. After that run bash and export CC=cc. Sun Studio 12 installer creates /usr/bin/cc symlink to it's binary, so from here, everything should work fine.

Peter

Peter_Podsklana at 2007-7-12 10:27:05 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...