Home » Developer & Programmer » Precompilers, OCI & OCCI » OCI Error: LNK1113: invalid machine type (32-bit application, OS: Windows 64bit, Oracle: Oracle11g)
OCI Error: LNK1113: invalid machine type [message #653739] Mon, 18 July 2016 02:08 Go to next message
ssk129
Messages: 1
Registered: July 2016
Location: Pune
Junior Member
I'm new in oracle and using OCI apis to connect the oracle database. I have installed instant client for the same and all oracle server-client configuration setup is ready.

I have written a sample C application (win32 console application) to test the oci apis. Set following parameters in the project settings,
include path: $(ORACLE_HOME)\oci\include
library linker path: $(ORACLE_HOME)\oci\lib\msvc
library: oci.lib

While building an application it is giving a linker error,
\oci\lib\msvc\oci.lib : fatal error LNK1113: invalid machine type

Machine: 64-bit
Application: 32-bit
Editor: Visual Studio C++ 6.0
Oracle Version: Oracle11g
Re: OCI Error: LNK1113: invalid machine type [message #658377 is a reply to message #653739] Mon, 12 December 2016 04:30 Go to previous messageGo to next message
paulo.berezini
Messages: 1
Registered: December 2016
Junior Member
you nee to use:
Machine: 32-bit
Application: 32-bit

or

Machine: 64-bit
Application: 64-bit
Re: OCI Error: LNK1113: invalid machine type [message #658379 is a reply to message #658377] Mon, 12 December 2016 06:17 Go to previous message
Michel Cadot
Messages: 65252
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

You can use a 32-bit library on 64-bit machine if your executable is 32-bit but you cannot use a 64-bit library with a 32-bit executable.

Previous Topic: Pro*C problem - unable generate .exe file
Next Topic: unable to generate pro*c .exe file on solaris11
Goto Forum:
  


Current Time: Tue Dec 12 12:58:22 CST 2017

Total time taken to generate the page: 0.01692 seconds