470,636 Members | 1,386 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

undefined symbol + shared object + template

I have not done much programming with template so please excuse my
inexperience. I have function defined in one of the class in this
manner. This function is being showed as an undefined function in the
shared object that we have created. I am getting a link time error that
symbol not found while creating an execuable.

template <Class T> long
ITLDOdbFactory_T<Class Y>::connection_count (const string& db_name)
throw (ITLDOdbConnectException)
{
return queue->connections();
}

I did an nm on the object file of this code and its not there. I don't
know why this happens or what is suppose to happen. I was wondering if
somebody can give me the heads up so that I can then find my way...

tia...

Oct 7 '05 #1
2 2859
kamit wrote:
I have not done much programming with template so please excuse my
inexperience. I have function defined in one of the class in this
manner. This function is being showed as an undefined function in the
shared object that we have created. I am getting a link time error that
symbol not found while creating an execuable.

template <Class T> long
ITLDOdbFactory_T<Class Y>::connection_count (const string& db_name)
throw (ITLDOdbConnectException)
{
return queue->connections();
}

I did an nm on the object file of this code and its not there. I don't
know why this happens or what is suppose to happen. I was wondering if
somebody can give me the heads up so that I can then find my way...

tia...


It's in the FAQ, it's also (I reckon) the single most commonly asked
question in this group.

http://www.parashift.com/c++-faq-lit....html#faq-35.8

john
Oct 7 '05 #2
Thanks john !!

Oct 7 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Manuel Maria Diaz Gomez | last post: by
8 posts views Thread by Scott J. McCaughrin | last post: by
3 posts views Thread by Kenneth Kahl | last post: by
5 posts views Thread by .rhavin grobert | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.