这种错误怎么解决 error LNK2001: unresolved external symbol "__declspec(dllimport)
sddsDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CViewReport::~CViewReport(void)" (__imp_??1CViewReport@@QAE@XZ)
sddsDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CViewReport::CViewReport(void)" (__imp_??0CViewReport@@QAE@XZ)
cpp中调用CViewReport出现错误
void CSddsDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CViewReport lp;
}
#if !defined(AFX_VIEWREPORT_H__008C1241_EA14_11D3_A1DF_0000E86DB13F__INCLUDED_)
#define AFX_VIEWREPORT_H__008C1241_EA14_11D3_A1DF_0000E86DB13F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxtempl.h>
class AFX_EXT_CLASS CViewReport
{
public:
//构造函数
CViewReport();
//title: 可以在初始化窗口标题,可以调用SetWindowTite(..)来设置。
CViewReport(char* title);
//析构函数
virtual ~CViewReport();