Also, your application project file doesn't look right. 'LIBS += -L../../bin/libMyLibrary.so' just adds the directory to the linker search path; you need to add '-lMyLibrary' to it. The 'undefined reference' error indicates that the linker can't find your library.
But note that whatever else may be in your library, templated classes will not appear. Templates aren't code, and aren't compiled into libraries; templates are...templates that tell the compiler how to generate code when an actual instantiation of a template class occurs, so unless your library creates an instance of a template class there is nothing in it that's template related. The only place the template is defined is in the header, which is roped in at compile time.
This is all somewhat oversimplified.




Reply With Quote


Bookmarks