0
DLL을 디버깅하고 싶습니다. __stdcall 및 pragma 링커를 사용하는 DLL 디버깅
#ifdef CODEC_EXPORTS
#define CODEC_API __declspec(dllexport)
#else
#define CODEC_API __declspec(dllimport)
#endif
extern "C" CODEC_API int __stdcall SpxInit(void);
extern "C" CODEC_API int __stdcall SpxEncode(unsigned char* inBuf, unsigned char* outBuf, unsigned int inlen);
extern "C" CODEC_API int __stdcall SpxEncodeNormal(void);
extern "C" CODEC_API int __stdcall SpxDecode(unsigned char* DinBuf, float* DoutBuf, unsigned int Dinlen);
extern "C" CODEC_API int __stdcall SpxFree(void);
#pragma comment(linker, "/export:[email protected]")
#pragma comment(linker, "/export:[email protected]")
#pragma comment(linker, "/export:[email protected]")
#pragma comment(linker, "/export:[email protected]")
#pragma comment(linker, "/export:[email protected]")
내가 내 솔루션에 새 프로젝트를 추가하고 간단하게 다음 CPP 파일 추가 : 전 지금
#include "stdafx.h"
#include "codec.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
을
이 헤더되어 이 DLL은 일부 기능 보이드 수출 다른 것을 시도하면서 간단히 새 프로젝트를 컴파일하려고했지만 VC2010이 나에게 말하고 있습니다
"error LNK2001" Unresolved external symbol "[email protected]"
"error LNK2001" Unresolved external symbol "[email protected]"
등 ...
그래서 나는 뭔가를 놓친 것 같지만 무엇이 보이지 않습니다.