Hello Everyone,
This is Antrikssh Mishra , I have created one application in c++ and using Eclipse with fedora 15 o/s I just build it and run it .my application build successfully but not connect to the server when I debug it then it shows following errors :
No source available for "sql::mysql::MySQL_Connection::init() at 0x14224c"
when I debug my code the code is debug perfectly but it fail at that point is show below.
pcHostName = "localhost"
pcUserName = "admin"
pcPassword = "user"
pcDBName = "MyDbase"
int iRetVal = 0;
// try block to establish a connection
try {
// load the drivers
poDriver = get_driver_instance();
// create a connection to the MySQL package
poConn = poDriver->connect(pcHostName, pcUserName, pcPassword);
// Connect to the MySQL database
poConn->setSchema(pcDBName);
// catch block to trap the exception and return error unable to access
// database
} catch (SQLException oSQLExecept) {
iRetVal =1;
}
return iRetVal;
}
After the highlighted line my code produce error before it worked perfectly.
Thanks and Regards,
Antrikssh Mishra.
