Jump to content
  • Advertisement
Sign in to follow this  

D3DXGetImageInfoFromFile() produces error LNK2019

This topic is 3633 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

Im not sure why this is not working, but when is use D3DXGetImageInfoFromFile() The program does not run. I have in this function called every frame: // Clear Back Buffer m_pd3dDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(r,g,b), 1.0f, 0 ); // Begin the scene if( SUCCEEDED( m_pd3dDevice->BeginScene() ) ) { IDirect3DSurface9 *Surface = NULL; D3DXIMAGE_INFO Info; if (FAILED(D3DXGetImageInfoFromFile ("Smiley1.png",&Info))) {MessageBox(m_hWnd, "Failed", "ERROR", MB_OK);} // End the scene m_pd3dDevice->EndScene(); } m_pd3dDevice->Present(NULL,NULL,NULL,NULL); It works fine without the function but crashes with it. This is the error message: Linking... Prj2.obj : error LNK2019: unresolved external symbol _D3DXGetImageInfoFromFileA@8 referenced in function "public: virtual bool __thiscall CustomWindow::Frame(void)" (?Frame@CustomWindow@@UAE_NXZ) C:\Documents and Settings\JB\My Documents\Visual Studio 2008\Projects\Prj2\Debug\Prj2.exe : fatal error LNK1120: 1 unresolved externals Thanks in advance, Jacob

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!