Home » Developer & Programmer » Precompilers, OCI & OCCI » How to connect Oracle database from HP-UX 11i using Pro*C
How to connect Oracle database from HP-UX 11i using Pro*C [message #150859] Sun, 11 December 2005 07:56
Messages: 6
Registered: December 2005
Junior Member
This is RaviKumar.I am working on HP-UX and Oracle 10g.We are using Pro*C for connecting to both.But i am new in this.In our Oracle server there is no demo_proc.mk makefile.So without this makefile how can precompile,compile and link library files.I stuck this work from last two weeks.If u know pls help me.

Actually I have compiled the following code.Its working fine.
Filename is test.pc
#include <stdio.h>

int main()
int i=100;

I used the following steps,
proc iname=test.pc oname=test.c code=ansi_c
cc -o test test.c
Its precompiled ,compiled and created test executable file.
its working fine.

Then if I try to connect to the database its giving some errors.
I thing these errors are linker errors.Its giving the following error.
/usr/ccs/bin/ld:Unsatisfied Symbols:
sqlcxt(first referenced test.o)(code)

In my Oracle server path there is no demo_proc.mk makefile.Without this file can I perform all these processes.Or can I create our own makefile.If it is possible then pls give me the step by step.Otherwise can I download the demo_proc.mk makefile in Net pls give me the link for download.Actually from last 2 weeks I stuck this problem.This is urgent requirement.Pls reply me asap.
Pls send Reply the following mail ID:ravi_mca80@yahoo.co.in


Best Regards,

[Updated on: Sun, 11 December 2005 08:04]

Report message to a moderator

Previous Topic: How do I install Pro C for use in Linux
Next Topic: Regarding Pro*C
Goto Forum:

Current Time: Sat Oct 31 14:34:15 CDT 2020