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 -> Urgent help for Pro*C.

Urgent help for Pro*C.

From: Abhimanyu Parasher <aparashe_at_yallara.cs.rmit.edu.au>
Date: 25 Apr 1999 15:35:05 GMT
Message-ID: <7fvcn9$i9q$1@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 - 10:35:05 CDT

Original text of this message

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