Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Compiling Pro*C Flatten.pc For Spooling

Re: Compiling Pro*C Flatten.pc For Spooling

From: Frank Langelage <frank_at_lafr.de>
Date: Wed, 06 Apr 2005 08:08:04 +0200
Message-ID: <3bhcm5F6dqr0aU1@individual.net>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US