[求助]关于Dll导出friend函数的问题
编写dll类出现友元函数无法导出问题,求问各位大侠如何解决?
class _declspec(dllexport) CMatrix : public CObject
{
...
public:
CMatrix & operator = (CMatrix & matrix);
friend CMatrix operator + (CMatrix mx1, CMatrix mx2);
...
}
编译后用dumpbin查看exports,CMatrix & operator = 正常导出,但无法看到friend CMatrix operator +。