Page 1 of 1

Solaris Compiler

Posted: Tue Jun 28, 2005 2:57 am
by tailormade
Which compiler are you using for Solairs? There are two major compilers used: Sun Studio (sunwsPRO) and GCC. Unfortunatley they are incompatible with one another. I have been trying to use Sun Studio but it will not link properly and I am guessing you are using GCC. Unfortunately, another toolkit I have to use is only available made with Sun Studio.

Re: Solaris Compiler

Posted: Tue Jun 28, 2005 6:16 am
by xnview
tailormade wrote:Which compiler are you using for Solairs? There are two major compilers used: Sun Studio (sunwsPRO) and GCC. Unfortunatley they are incompatible with one another. I have been trying to use Sun Studio but it will not link properly and I am guessing you are using GCC. Unfortunately, another toolkit I have to use is only available made with Sun Studio.
I use the standard cc of solaris

Compiler Version

Posted: Thu Jun 30, 2005 5:01 am
by tailormade
Can you give me more information about the version of the compiler you are using? When I compile both the sample programs and my program, I get two undefined references to __ashrdi3 and __ashldi3. From what I can tell in google searches, undefined references to these two items are usually due to compiler or standard library incompatiblities (but I could be wrong).

I am using Sun Studio 9 (which is listed using CC -V as Sun C++ 5.6 2005/7/15).

Re: Compiler Version

Posted: Thu Jun 30, 2005 10:29 am
by xnview
tailormade wrote:Can you give me more information about the version of the compiler you are using? When I compile both the sample programs and my program, I get two undefined references to __ashrdi3 and __ashldi3. From what I can tell in google searches, undefined references to these two items are usually due to compiler or standard library incompatiblities (but I could be wrong).

I am using Sun Studio 9 (which is listed using CC -V as Sun C++ 5.6 2005/7/15).
I rebuild soon a new version