Regarding Pro*C [message #94486] |
Sun, 19 December 2004 18:55 |
Priyank
Messages: 3 Registered: December 2004
|
Junior Member |
|
|
Hi all,
This is Priyank maheshwari from the Intersoft data labs and i have some Quries regarding Pro*C.
1) How to Compile the program containing Pro*C Query.
2)Can Pro*C be used only for Oracle or it can be used for other database also.
3)How to access DB2 database using C code.
Priyank Maheshwari
Intersoft Data Labs.
+919873020496
|
|
|
Re: Regarding Pro*C [message #150861 is a reply to message #94486] |
Sun, 11 December 2005 08:27 |
ravimahi
Messages: 6 Registered: December 2005
|
Junior Member |
|
|
Hi,
Hi,
This is RaviKumar.I have seen ur ID in orafaq/forum.I am woring 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 struck this work from last two week.If u know pls help me.
Hi,
This is RaviKumar.I am woring 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.
Thanks
Best Regards,
RaviKumar.T
|
|
|