Yeap you are right..
I've added -xarch=v9 in my compile option and it works..
thanks

------------------------------------
Celcom (M) Bhd
Mohd Hisham Auyob
[EMAIL PROTECTED]
4th Floor, Wisma Celcom,
Lot 74, Jln Kemajuan, Section 13,
46200, Petaling Jaya,
Selangor
tel: 03-72027451
fax: 03-72027337
mobile: 019-3149755
------------------------------------

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 19, 2006 10:12 PM
To: Mohd Hisham Auyob
Cc: opensolaris-discuss@opensolaris.org
Subject: Re: [osol-discuss] wrong ELF class: ELFCLASS64

On Tue, 19 Dec 2006, Mohd Hisham Auyob wrote:

> Hi...
>
> really need help on this.
> i got error while compiling my pro C program.
> ld: fatal: file /oracle/app/oracle/product/10.2.0/lib//libclntsh.so:
wrong ELF class: ELFCLASS64
> ld: fatal: file /oracle/app/oracle/product/10.2.0/lib/scorept.o: wrong
ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to t.exe
>
> i'm using solaris 10 sparc , oracle 10G.

Well, it looks like you're trying to link 64bit libraries and 32bit 
application objects together. That doesn't work. You must compile your 
program into 64bit code in order to link it with the library files
listed 
above, which are 64bit.

FrankH.

>
>
> This message posted from opensolaris.org
> _______________________________________________
> opensolaris-discuss mailing list
> opensolaris-discuss@opensolaris.org
>
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to