Undefined reference to connection pooling

Hi

I am using ubuntu linux. I got link error. I am using g++ complier
undefined reference to `odbc::DriverManager::SetConnectionPooling(bool)'
Please any one help me. What can i do for this error
libsync.a
libssl.a
libcrypto.a
libODBC++.a
libODBC.a
libcurl.a
libthread.so
libuuid.a
I used these libraries....
Please any one help me....
Last edited on
closed account (S6k9GNh0)
It means that SetConnectionPooling isn't referenced to anything which means it's not implemented anywhere. Therefor that function doesn't exist.

Analogy: The function has a head but no brain. The head represents the declaration. And the brain resembles the thing inside the head.
Last edited on
Hi

I have implemented setconnectionpooling function in DriverManager.cpp
have you #include the header file in which the function is declared.
is the class inside odbc namespace or in DriverManager class?? check this.
have you implemented the function?
these might be reasons which i can figure out coz if you have implemented the function yourself then there should not be any error.
Hi

I have included the driverManager.h header file in that particular location.I have implemented the function.This is the function implementation

void DriverManager::SetConnectionPooling(bool poolingFlag)
{
DriverManager::connectionPooling = poolingFlag;
}

compiling is success.
i got error in program linking only.
Hi

Thanks for all replies.I got answer...
Topic archived. No new replies allowed.