Home » Developer & Programmer » Precompilers, OCI & OCCI » Pro*C file compilation error (LINUX GNU)
Pro*C file compilation error [message #575670] Fri, 25 January 2013 07:51 Go to next message
maro
Messages: 2
Registered: January 2013
Location: India
Junior Member
Hi,

I got an error while compiling p08-3 pro*c file in Linux. How to solve this error?.

bash-3.2$ pc -f p08-3 bht-cims.o cims-soc.o
Libsource set to /procims/libsource
Pre-Compiling p08-3.pc
Compiling p08-3.c
Linking p08-3.o bht-cims.o cims-soc.o
bht-cims.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status


Thanks in Advance,
Re: Pro*C file compilation error [message #575672 is a reply to message #575670] Fri, 25 January 2013 07:57 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
32-64bit mismatch?

Regards
Michel
Re: Pro*C file compilation error [message #575811 is a reply to message #575672] Mon, 28 January 2013 01:55 Go to previous messageGo to next message
maro
Messages: 2
Registered: January 2013
Location: India
Junior Member
Hi,
Thanks Michel for reply.

The cims-soc.o object files which was created at hp unix with Pro*C/C++: Release 9.2.0.6.0. Now i need to call this object file and compile with proc file in linux with Pro*C/C++: Release 11.1.0.7.0
Re: Pro*C file compilation error [message #575814 is a reply to message #575811] Mon, 28 January 2013 02:00 Go to previous message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
So yes most likely, 32/64-bit mismatch.
There is an option in proc command to point to 32bit library and to tell Oracle you want to a 32bit program.
You will also have to modify your makefile to tell your compiler and linker to use and generate 32bit executable.

Regards
Michel
Previous Topic: (ERROR) FAN - Fast Application Notification
Next Topic: Memory corruption from malloc after calling db connection routine
Goto Forum:
  


Current Time: Thu Mar 28 11:33:18 CDT 2024