Jump to content
  • Advertisement
Sign in to follow this  
Xore

D3D8 Linking Errors

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

Linking...
LINK : warning LNK4044: unrecognized option '/LTGG'; ignored
XDS.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : warning LNK4044: unrecognized option '/LTGG'; ignored
d3dx8.lib(d3dx8core.obj) : error LNK2001: unresolved external symbol __imp__GetObjectA@12
d3dx8.lib(cd3dxresource.obj) : error LNK2001: unresolved external symbol __imp__DeleteObject@4
d3dx8.lib(cd3dxfont.obj) : error LNK2001: unresolved external symbol __imp__DeleteObject@4
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__DeleteObject@4
d3dx8.lib(cd3dxfont.obj) : error LNK2001: unresolved external symbol __imp__CreateFontIndirectA@4
d3dx8.lib(cd3dxassembler.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
d3dx8.lib(cpudetect.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
d3dx8.lib(cd3dxassembler.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
d3dx8.lib(cpudetect.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
d3dx8.lib(cd3dxassembler.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyA@12
d3dx8.lib(cpudetect.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyA@12
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__DeleteDC@4
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__SelectObject@8
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__SetTextColor@8
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__SetBkColor@8
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__SetBkMode@8
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__CreateDIBSection@24
d3dx8.lib(cd3dxtext.obj) : error LNK2001: unresolved external symbol __imp__CreateCompatibleDC@4

I have no idea whats not included or w/e in all of this. But I do have these lines:
#pragma comment(lib, "d3d8.lib")
#pragma comment(lib, "d3dx8.lib")


[Edited by - Xore on August 13, 2006 4:08:36 AM]

Share this post


Link to post
Share on other sites
Advertisement
Looks like you are missing linking against one or more of the following;

kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib

These are the libs that my VS Express links against by default in a Win32 app. The symbols it can't find above are not DirectX related. For example, the SetTextColor symbol would be in gdi32.lib I think.

Whatever compiler and IDE you are using, it would not hurt to have it link against all these libs by default. It won't include any code it doesn't use in your final exe as far as I know.

HTH Paul

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!