Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Compiling Pro*C Flatten.pc For Spooling
absinth wrote:
> Hi,
>
> I've got flatten.pc off:
>
> asktom.oracle.com/~tkyte
>
> which spools a table and I'm trying to compile it.
>
> I successfully executed proc -iname=flatten flatten.pc and have the
> resulting '.c' file. Now when I try compile it with:
Where is the compilation command line (gcc -c ...). The following line is the link command.
> gcc -o flatten flatten.o -m64 -L/oracle/rdbms/9.2.0/orax011/lib
> -lclntsh -m64 -lclntst9 -m64
>
> + gcc -o flatten flatten.o -m64 -L/oracle/rdbms/9.2.0/orax011/lib
> -lclntsh -m64 -lclntst9 -m64
>
> ld: fatal: file flatten.o: wrong ELF class: ELFCLASS32
>
You have to use -m64 also for the compilation step so that you get a 64bit object file flatten.o or compile and link in 32bit mode by avoiding the m64 switch and use $ORACLE_HOME/lib32 as lib dir. Received on Wed Apr 06 2005 - 01:08:04 CDT
![]() |
![]() |