hey , i am using this code for database connection but it is giving error




#include "/opt/redknee/home/rel76d1/mediation//3rdparty/ocilib/include/ocilib.h"
int main(void)
{
OCI_Connection *cn;
if (!OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT))
return EXIT_FAILURE;
//cn = OCI_ConnectionCreate("db", "usr", "pwd", OCI_SESSION_DEFAULT);
cn = OCI_createConnection("rel76d1", "rte", "rted1", OCI_SESSION_DEFAULT);
if (cn != NULL)
{
printf(OCI_GetVersionServer(cn));
printf("Server major version : %i\n", OCI_GetServerMajorVersion(cn));
printf("Server minor version : %i\n", OCI_GetServerMinorVersion(cn));
printf("Server revision version : %i\n", OCI_GetServerRevisionVersion(cn));
printf("Connection version : %i\n", OCI_GetVersionConnection(cn));
/*... application code here ...*/
OCI_ConnectionFree(cn);
}
OCI_Cleanup();
return EXIT_SUCCESS;
}


but on compling it is giving error oci_createConnection() was not declared in yhis scope.