I have a LNK2019 problem when trying to use some DLL in my project.
Details:
__d
For regular static class methods the declspec(dllexport) should be sufficient but in some cases (inline friend functions for example) you need to provide declspec(dllexport) for the function.
e.g.
#define DLLEXPORT __declspec(dllexport)
class DLLEXPORT A {
A();
int somefunc();
DLLEXPORT friend int operator==(const A &ws1, const A &ws2)
{ /* some code */ }
};