Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Compiling Pro*C Flatten.pc For Spooling
In article <1112741982.663514.248260_at_o13g2000cwo.googlegroups.com>, absinth
says...
>
>Hi,
>
>I've got flatten.pc off:
what OS
what db release?
>
>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?
>
-- Thomas Kyte Oracle Public Sector http://asktom.oracle.com/ opinions are my own and may not reflect those of Oracle CorporationReceived on Tue Apr 05 2005 - 21:26:01 CDT