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
ravimahi
Messages: 6
Registered: December 2005
Junior Member
Hi,
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;
printf("%d",i);
}

I used the following steps,
1.precompile
proc iname=test.pc oname=test.c code=ansi_c
2.compile
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

Thanks

Best Regards,
RaviKumar.T

[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: Thu Mar 28 15:33:23 CDT 2024