Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

linker error

This topic is 2596 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 am using c++ and dx9.I am getting the folowing linker error.
[font="Consolas"][size="1"][font="Consolas"][size="1"]>main.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileExA@56 referenced in function _WinMain@16

1>main.obj : error LNK2019: unresolved external symbol _D3DXCreateSprite@8 referenced in function _WinMain@16

1>c:\users\phil\documents\visual studio 2010\Projects\dx9s\Debug\dx9s.exe : fatal error LNK1120: 2 unresolved externals

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am probably missing a lib file.

[/font][/font]

Share this post


Link to post
Share on other sites
Advertisement
It can't find the D3DX functions. I'm guessing you're missing d3dx9.lib in your project linker inputs.

Share this post


Link to post
Share on other sites

I already linked in d3dx9.lib.however it still does not work.

Have you setup the paths correctly for DirectX SDK so the linker can actually find the .lib file. Also make sure you are linking against the correct one so 64 bit link against the one in 64bit dir and 32 one against the one in the 32 bit dir.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!