| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Urgent help for Pro*C.
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
![]() |
![]() |