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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Pro*C Compilation Tom Kyte's Flatten.pc

Re: Pro*C Compilation Tom Kyte's Flatten.pc

From: Dave <solomons_dad.w.marks_and_whom_at_oracle.com>
Date: Thu, 07 Apr 2005 14:48:17 +0100
Message-ID: <g7b5e.24$Wo2.66@news.oracle.com>

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:
>
> 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
>
> ld: fatal: File processing errors. No output written to flatten
>
> collect2: ld returned 1 exit status
>
> I can't get out the binary?
>
>
> I've tried to use Tom Kyte's Oracle Pro*C makefile
> (http://asktom.oracle.com/~tkyte/proc_makefile/) also to no avail. Can
> anyone give me some pointers or an example make file?
>

Sounds like a 32/64 bit mismatch. Compile flatten.pc in 64 bit mode, or link it with 32 bit libraries. Received on Thu Apr 07 2005 - 08:48:17 CDT

Original text of this message

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