I am having problems connecting the program to Windows with VC2008 SP1. I explicitly specialize the template member function in a DLL that correctly displays as an exported character in the dependency path, for the correct type and with the correct arguments.
When I try to call a symbol from .exe, the linker complains that it cannot resolve the symbol (although it compiles the object in order), however, the decorated symbol name says that it cannot resolve exactly the decorated name of the exported symbol in my DLL (if look with the help of a dependent walker). The problem occurs only for explicitly specialized exported template member elements. If I comment on calls to them, all other exported function classes will be linked in order, so .lib looks like it was generated normally.
I tried changing my declaration of the template function in the headers to include the extern directive, and it correctly set the usual __declspec (dllimport), but that does not make any difference.
Any ideas are appreciated. Thanks.
source
share