I am using VS2008 in win7 and g++ 4.7 in CentOS 18. The issue is only seen on Windows when I used dynamically shared library. When I convert it static library the program li
I believe this is because compiler creates specialized code for template class when the template class is first used with a specific parameters. Since compiler uses only the included header files (.h) when compling a compilation unit (.cpp files) all the tmplate code must be available in .h files. You can export specialized template classes from a dll but not the template classes themselves.