如题,我的VS提示:
LNK2001 无法解析的外部符号 "private: static class D2Dcore * TinyAVG::pTinyAVG_D2Dcore" (?pTinyAVG_D2Dcore@TinyAVG@@0PAVD2Dcore@@A) TinyAVG F:文档TinyAVGTinyAVGTinyAVGTinyAVG.obj
我的代码(TinyAVG.h,就是在这个文件报错的):
#pragma once
#include"tinyxml2.h"
#include"D2Dcore.h"
#define WINDOW_WIDTH 1440
#define WINDOW_HEIGHT 810
class TinyAVG
{
public:
TinyAVG();
~TinyAVG();
HRESULT Initialize(HINSTANCE hInstance);
void RunMessageLoop();
static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
private:
HWND m_hwnd;
static D2Dcore TinyAVG_D2Dcore;//这里出的问题
};
D2Dcore.h
里面放了D2Dcore(自己写的类)的定义,实现在D2Dcore.cpp!### 问题描述