Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Linking 32-bit and 64 bit oracle library
Dave wrote:
> abhi147_at_gmail.com wrote:
> > Hi ,
> >
> > I am creating two libraries using Pro*c , one which uses Oracle
> > client 8.0.5 and the other uses Oracle 10.2.0.1.0(In their own
> > environment) . The 8.0.5 library is a 32 bit , and 10g's library is 64
> > bit library(uses -xarch=v9 flag while compiling)
> >
> > when I include these libraries as USRLIBS I get errors like :
> >
> > ld: fatal: file pro_10.o: wrong ELF class: ELFCLASS64
> >
> > Is there any way to convery the 32 bit library to 64 or vice versa ?
> >
> > Thanks !
> >
>
> Recompile it from source to a 64-bit object file.
> You may also need to do some tweaking to the code bearing in mind that
> it is now 64-bit instead of 32-bit.
>
> Are you aware, by the way, that $ORACLE_HOME/lib32 in 10g contains
> 32-bit libraries? Porting to 64-bit isn't a necessary pre-requisite to
> using Oracle 10g.
>
> Dave.
Hi Dave ,
I know that Oracle 10g contains 32-bit libraries , but what
all should I change for the compiler to pick it up from lib32 instead
of lib . The LD_LIBRARY_PATH is $ORACLE_HOME/lib32 and changed the LIB
variable to lib32 in env_precomp.mk .But when the LIB variable is
changed to lib32 , I get the errors related to ELFCLASS64 when
compiling 10g code .
Is there something else I should change ?
Thanks a lot for ur help Received on Tue Sep 05 2006 - 21:23:44 CDT
![]() |
![]() |