Jump to content
  • Advertisement
Sign in to follow this  

Unresolved external symbol _IID_IDXGIFactory

This topic is 2243 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I create Console Application in VC++ 2010, and add the following code to it:


#include <d3d10.h>
#include <d3dx10.h>
#include <DxErr.h>

#pragma comment(lib, "d3d10.lib")
#pragma comment(lib, "d3dx10.lib")
#pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "dxerr.lib")

int _tmain(int argc, _TCHAR* argv[])
{
IDXGIFactory* pDXGIFactory;
CreateDXGIFactory(IID_IDXGIFactory, ( void** )&pDXGIFactory);

return 0;
}


Building this project, I have linker error: error LNK2001: unresolved external symbol _IID_IDXGIFactory

Now I create Console Application with MFC support, and add the same code. The build is successful. What is wrong in the first case? Why MFC project is built successfully, and non-MFC project fails?

Share this post


Link to post
Share on other sites
Advertisement
Of course, Win32 project is better, Console application is just reproducible sample, My actual problem is in Dll project.
Solved by adding dxguid.lib to the linker list.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!