DirectX游戏引擎编译错误LNK2019和LNK1120

时间:2019-03-29 08:56:15

标签: c++ directx directx-9

使用Directx9编译引擎时出现此错误。

引擎的WinMain代码和x86环境中的调试,库使用d3d9.lib,d3dx9.lib,winmm.lib


#include"stdafx.h"
#include"MainScene.h"

INT WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, INT)
{
#if _DEBUG
    AllocConsole();
    FILE * stream;
    freopen_s(&stream, "CONOUT$", "wt", stdout);
#endif
    App::GetInst()->Init(1280, 720, 1);
    SceneDirector::GetInst()->ChangeScene(new MainScene());
    App::GetInst()->Run();
    return 0;
}

0 个答案:

没有答案