XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Linker error: LNK2019

Last post 1/27/2010 6:50 PM by Hackp. 2 replies.
  • 1/27/2010 4:44 PM

    Linker error: LNK2019

    Hi there,

    i'm having some problems with my DirectX 10 project.

    Every time i try to debug my solution i get these errors:

    error LNK2019: unresolved external symbol _D3D10CreateDeviceAndSwapChain@32 referenced in function "public: bool __thiscall WinDevice::initDevice(struct HWND__ *,int,int,bool)" (?initDevice@WinDevice@@QAE_NPAUHWND__@@HH_N@Z) WinDevice.obj
    error LNK2019: unresolved external symbol _CreateDXGIFactory@8 referenced in function "public: int __thiscall WinDevice::graphicAdapterCount(void)" (?graphicAdapterCount@WinDevice@@QAEHXZ) WinDevice.obj

    I have installed the DirectX SDK (August 2009) after Visual Studio 2010 Beta 2, and i set the project folders.

    Here is my header file:

    #include <windows.h>
    #include <d3dx10.h>
    #include <d3d10.h>
    #include <DXGI.h>
    #include "WinDevice.h"
    #include "WinText.h"

    class WinDevice;
    class WinText;

    I am running Windows 7 64 Bit.

    Thanks for helping.

    P.S. I am using "#pragma once" in WinDevice.h and WinText.h
  • 1/27/2010 5:32 PM In reply to

    Re: Linker error: LNK2019

    Have a look here and see if it solves your problem.

  • 1/27/2010 6:50 PM In reply to

    Re: Linker error: LNK2019

    I swapped to 64 bit debug, bur now i am getting this error:

    Error 3 error LNK2001: unresolved external symbol D3DX10CreateFontA

    P.S. I solved the problem! Your post was very helpful! Thanks.
Page 1 of 1 (3 items) Previous Next