PROBLEM WITH SQLCXT [message #128725] |
Wed, 20 July 2005 05:32 |
deepa_k
Messages: 15 Registered: June 2005
|
Junior Member |
|
|
hi all
As i am new to pro*c, i am trying to execute a simple program.
But unable to get result.
I am working in Digital unix/Oracle8i
Code:(sample.pc)
#include <stdio.h>
#include <ctype.h>
#include <string.h>
EXEC SQL BEGIN DECLARE SECTION;
VARCHAR uid[20];
VARCHAR pwd[20];
EXEC SQL END DECLARE SECTION;
#include <sqlca.h>
main()
{
printf("enter login name:");
scanf("%s",uid);
printf("enter password");
scanf("%s",pwd);
EXEC SQL CONNECT :uid.arr IDENTIFIED BY :pwd.arr;
}
When i compile this .pc file by giving command proc iname=sample.pc, i am getting sample.c file.
When i compile this sample.c file by giving command cc .....
i am getting error
ID:
UNRESOLVED:
SQLCXT
This error is in precompiler generated C code.
I am struck with this for last 2 days.
I tried to compile sample.c file by giving its path & headerfile path also. But no change.
when i remove that oracle connect statement, It's compiling.
Please give me a solution.
I feel its not a typical error.but i am hopeless.
expecting ur valuable soln.
regards
deepa.
|
|
|
|