,

에러 내용

XXsss.obj : error LNK2019: "__declspec(dllimport) public: __thiscall NETWORK::NETWORK(void)" (__imp_??0NETWORK@@QAE@XZ) 외부 기호("public: __thiscall XXXSERVER::XXXSERVER(void)" (??0XXXSERVER@@QAE@XZ) 함수에서 참조)를 확인하지 못했습니다.



DLL 측
#ifdef DLLEXPORT
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif

class DLL_API cBase {
cBase();
virtual cBase();
};




애플리케션 측
#include "Base.h"
#pragma comment(lib,"Base.lib")

class cChild : public cBase {
cChild();
virtual cChile();
};

by 흥배 2013.03.16 23:53