[Ilugc] Link libs compiled by gcc with Sun studio compilers

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Tue Sep 15 07:17:14 2009

On Mon, Sep 14, 2009 at 9:50 PM, narendra babu <cnarendra_babu@xxxxxxxxx> wrote:

hi ,

i have Sun studio comipler (CC) c++ 12 on X86 box and i have library whih is 
compiled by gcc and created libcrypto.a

now is it possible that i can link the gcc compiled lib with sun compilers on 
X86 box

$cc -lcrypto main.c


Note : i am not using Sun sparc box , i am using x86 box with rhel linux 
installed but with Sun studio compilers for liunx


What on earth are you trying to do?

Compile Sun studio compiler to create linux executable on x86?

What on earth for? Unless you are on Sun Solaris running on Sparc or
x86(unlikely) you do not want to use Sun Workshop compiler toolchain.

You also seem to be mixing Sun compiler and gcc.

I normally like to focus on getting useful work done instead of bothering
with toolchains and stuff.

What are you trying to do? You want to compile and run code? Run a
native compiler/toolchain.

Cross compilation works only in NetBSD world and embedded systems but
it has its own problems.

I have also cross compiled on linux for a recent project but that is for an
embedded target when the target does not have convenience to compile
natively.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com

Other related posts: