Jump to content
  • Advertisement
Sign in to follow this  
Zeraan

Debug build works, but unresolved externals when compiling release build

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

Ok, I'm currently working on my game, Asteroids of Beyaan. People have reported that it runs for a nanosecond, then closes. So this is an attempt to fix that problem. First thing I thought of as potential solution is to change from debug build to release build. As I attempted to do this, I got those errors:
Linking...
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXCreateSprite@8
OutpostG.obj : error LNK2001: unresolved external symbol _Direct3DCreate8@4
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@16
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileExA@56
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileA@12
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXLoadMeshFromX@28
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
TParticle.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixScaling@16
TParticle.obj : error LNK2001: unresolved external symbol _D3DXMatrixScaling@16
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationZ@8
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationY@8
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationX@8
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16
TParticle.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@16
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationYawPitchRoll@16
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXMatrixOrthoLH@20
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXVec3Normalize@8
OutpostG.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
OutpostG.obj : error LNK2001: unresolved external symbol _D3DXCreateFontIndirect@12
OutpostI.obj : error LNK2001: unresolved external symbol _c_dfDIMouse
OutpostI.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
OutpostI.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20
TParticle.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranspose@8
Release/The Asteroids of Beyaan.exe : fatal error LNK1120: 22 unresolved externals

It looks like D3D8X isn't found, but why is this happening? Why does it work in debug build, but not in retail build?

Share this post


Link to post
Share on other sites
Advertisement
It could be that you just forgot to put the libraries in the additional dependenices section of the release build project settings.

Share this post


Link to post
Share on other sites
Yes! That's the problem! I didn't know that there was a seperate dependencies for release also. Learned something new today.

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!