Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Urgent help for Pro*C.

Re: Urgent help for Pro*C.

From: Gerard H. Pille <ghp_at_skynet.be>
Date: Sun, 25 Apr 1999 18:46:22 +0200
Message-ID: <7fvh58$e28$1@news1.skynet.be>


Did you use the proc.mk makefile that comes with PRO*C?

Abhimanyu Parasher heeft geschreven in bericht <7fvcn9$i9q$1_at_emu.cs.rmit.edu.au>...
>Hi!
> Can anybody help me for Pro*C. I'm using a small code for input.
After compiling it with proc compiler it gives me the .c file. When I try to compile this .c file it gives me error for an undefined symbol sqlcxt which I think is being created by proc compiler. I don't know which header file to be used for this symbol. Can anybody help?
>
>Please help. I need it urgently.
>
>Thanks & Regards
>
>Abhimanyu Parasher
>
>
>EXEC SQL INCLUDE SQLCA;
>EXEC SQL INCLUDE SQLDA;
>EXEC SQL INCLUDE ORACA;
>
>main()
>{
> strcpy (uid.arr,"aparashe");
> uid.len=strlen(uid.arr);
> strcpy (pwd.arr,"manshu212");
> pwd.len=strlen(pwd.arr);
>
> printf("\n\n\tEmbedded PL/SQL Demo\n\n");
> printf("Trying to connect...");
>
>
> EXEC SQL CONNECT :uid IDENTIFIED BY :pwd;
> printf(" connected.\n");
> for (;;) /* Loop infinitely */
> {
> printf("**************************************");
> printf("* 1. Edit Student Data *");
> printf("* 1. Edit Subjects Data *");
> printf("* 1. Edit Courses Data *");
> printf("* 1. Edit Enrolment Data *");
> printf("**************************************");
> printf(" Enter Choice : ");
> scanf("%d", Choice);
> if(Choice == 0)
> {
> EXEC SQL COMMIT WORK RELEASE;
> exit(0);
> }
>
> EXEC SQL EXECUTE
>
> BEGIN
> IF :Choice = 1 THEN
> :status := 'gone in';
> END IF;
> END;
> END-EXEC;
> status.arr[status.len] = '\0';
> printf("Status = %s", status.arr);
>
> }
>}
>
>
>--
>
>
>
Received on Sun Apr 25 1999 - 11:46:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US