Debug build works, but unresolved externals when compiling release build

Started by
1 comment, last by Zeraan 18 years, 4 months ago
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?
Advertisement
It could be that you just forgot to put the libraries in the additional dependenices section of the release build project settings.
Yes! That's the problem! I didn't know that there was a seperate dependencies for release also. Learned something new today.

This topic is closed to new replies.

Advertisement