Jump to content
  • Advertisement
Sign in to follow this  
ryt

Errors in release mode

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

When I compaile in debug mode everything is ok, but when I try release mode I recive this errors: Compiling... main.cpp Linking... main.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@16 main.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16 main.obj : error LNK2001: unresolved external symbol _D3DXVec3Normalize@8 main.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0 main.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationX@8 main.obj : error LNK2001: unresolved external symbol _D3DXCreateTexture@32 main.obj : error LNK2001: unresolved external symbol _D3DXMatrixScaling@16 main.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12 main.obj : error LNK2001: unresolved external symbol _Direct3DCreate9@4 main.obj : error LNK2001: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20 main.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8 Why this?

Share this post


Link to post
Share on other sites
Advertisement
Because you only added d3dx9.lib to your linker setting in debug mode. You need to add everything in both configs. You might also need mmsystem.lib (or winmm, I can't recall offhand).

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!