473,698 Members | 2,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with OCI oracle 8.1.7 compilation

Hi,

I have written a small C code to test with OCI calls (OCI Initialize,
OCIEnvInit etc). The program is called myprog.C. The OS is AIX 5.2.

myprog.C

#include<oci.h> // This is in ${ORACLE_HOME}/rdbms/demo

int main() {
OCIcalls here

calls to connect to db.
close db

exit
}

I used the following syntax to compile:
make -f demo_rdbms.mk build OBJS=myprog.o EXE=myprog

generates error message:

<oci.h> is not found.

I have tried including the path in my ${PATH} variable, but it still
fails to compile.

Can you please shed some light on how to actually compile my code.
The compilation features are not very well documented in Oracle. An
example makefile will be great.

Thanks.

gavs.
Jul 19 '05 #1
1 2925
ga****@yahoo.co m (gavs) wrote in message news:<54******* *************** ****@posting.go ogle.com>...
Hi,

I have written a small C code to test with OCI calls (OCI Initialize,
OCIEnvInit etc). The program is called myprog.C. The OS is AIX 5.2.

myprog.C

#include<oci.h> // This is in ${ORACLE_HOME}/rdbms/demo

int main() {
OCIcalls here

calls to connect to db.
close db

exit
}

I used the following syntax to compile:
make -f demo_rdbms.mk build OBJS=myprog.o EXE=myprog

generates error message:

<oci.h> is not found.

I have tried including the path in my ${PATH} variable, but it still
fails to compile.

Can you please shed some light on how to actually compile my code.
The compilation features are not very well documented in Oracle. An
example makefile will be great.

Thanks.

gavs.


IIRC (and I verified) sample code and makefiles are in
$ORACLE_HOME/rdbms/demo. Watch out for demo_rdbms.mk

Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4815
by: James Hull | last post by:
Hi All: I am new in the Perl world. So far I have installed cygwin and Perl 5.8.0 along with Perl DBI and DBD::Oracle modules. NowI am trying to install Perl Tk on my PC (Windows 2K). I have tried both Tk804.025 and Tk804.025_beta2. However, both versions failed with following errors. It appeared that the command "perl Makefile.PL" ran successfully, but the "make" command failed. I also ran "perl -Mblib demos/widget". It was complaining...
125
15449
by: Rhino | last post by:
One of my friends, Scott, is a consultant who doesn't currently have newsgroup access so I am asking these questions for him. I'll be telling him how to monitor the answers via Google Newsgroup searches. Scott has heard a lot of hype about DB2 and Oracle and is trying to understand the pros and cons of each product. I'm quite familiar with DB2 but have never used Oracle so I can't make any meaningful comparisons for him. He does not have...
10
2712
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was closed. Could not establish a trust relationship with the remote server.
12
9509
by: wenmang | last post by:
Hi, I am using following Oracle Proc-C compiler: Pro*C/C++: Release 8.1.7.0.0 - Production on Thu Jun 15 15:57:32 2006 (c) Copyright 2000 Oracle Corporation. All rights reserved. I like to use "long long" integer type(64 bit), but it seems that Oracle doesn't like it after execution, and giving me error code -1460, any idea about this? thx
2
14240
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers: Additional Array INSERT and SELECT Syntax Support by Pro*C/C++ and Pro*COBOL Precompilers: Dynamic SQL Statement Caching in Pro*C/C++ and Pro*COBOL Precompilers: Fix Execution Plan in Pro*C/C++ and Pro*COBOL Precompilers: Flexible B Area Length...
11
3087
by: chella | last post by:
Hi, Please help me in debugging the below procedure. SQL> create or replace procedure pr_test_new 2 as 3 declare sql_stmt varchar2(100); 4 begin 5 sql_stmt:='select * from price'; 6 execute immediate sql_stmt;
1
135
by: gavs | last post by:
Hi, I have written a small C code to test with OCI calls (OCI Initialize, OCIEnvInit etc). The program is called myprog.C. The OS is AIX 5.2. myprog.C #include<oci.h // This is in ${ORACLE_HOME}/rdbms/demo int main() {
11
7872
by: tracy | last post by:
Hi, I really need help. I run this script and error message appeal as below: drop trigger log_errors_trig; drop trigger log_errors_trig ERROR at line 1: ORA04080: trigger 'LOG_ERRORS-TRIG' does not exist drop table log_errors_tab;
17
5942
by: kanishka1213 | last post by:
when i run perl script in the cmd prompt , it runs well and outputs results from db. but when i run the same script on apache server internet explorer. i get an error as ----- install_driver(Oracle) failed: Can't load 'C:/perl/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle: load_file:The specified module could not be found at C:/perl/lib/DynaLoader.pm line 202. at (eval 5) line 3 Compilation failed in require at (eval 5) line 3....
0
9160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7729
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.