Skip to main content
gamedev.net
🔒 Locked

D3D8 Linking Errors

Started by Xore Aug 13, 2006 at 2:50 AM 2 replies 2.7k views
Original Post
Xore
Xore

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]
Xore
Xore
I figured alot of them out, editted.
Aardvajk
Aardvajk
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
Xore
Xore
Thank you! It fixed it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.