I'm having trouble exporting a class through a LIB file. I have a little Visual C++ project that shall just export a class definition for being linked to other projects.
The test project:
class __declspec(dllexport) CTest1
typedef CTest1<int> CIntTest1;
This compiles perfectly, but cannot be exported; neither "CTest1", nor "CIntTest1" is listed by dumpbin.
Other exported structs are listed well.
I may not use MFC, so "AFX_EXT_CLASS" may not be used.
I also tried a .DEF file, e.g. using "EXPORTS CTest1",
but also to no effect (but it might only work for DLLs).