How do I do that??
gcc -o PROG1 PROG1.c PROG2.c PROG3.c -L /usr/orasys/9.2.0.6/lib -lclntsh -m64 ???
How do I do that??
gcc -o PROG1 PROG1.c PROG2.c PROG3.c -L /usr/orasys/9.2.0.6/lib -lclntsh -m64 ???
Doesn't work like that!
I meant to say that the code is still not compiling like :
gcc -o PROG1 PROG1.c PROG2.c PROG3.c -L /usr/orasys/9.2.0.6/lib -lclntsh -m64
and if I try to compile the PROG2.c separately it also fails...it does not have any dependency.
Run objdump on your objects to verify that they are 64-bit. Run objdump on the Oracle client library to verify that it is 64-bit.
The original ELFCLASS64 message was reported for the client library, so the client library is 64-bit. The conflict must be with your stuff.
If the client library is 64-bit, and your objects are 64-bit, then I suspect you may have a bad installation of gcc which is not linking the correct runtime, or the wrong copy of crt1.o or some such thing.
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}
ksh: objdump: not found
For this purpose the "file" command would probably also work.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.