• ### Popular Now

• 13
• 18
• 19
• 27
• 10

#### Archived

This topic is now archived and is closed to further replies.

# d3dx8d.a

This topic is 5245 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Is there a way to link the retail libraries in gcc with only d3dx8d.a? The dev-pak from Dev-CPP did not come with d3dx8.a...

##### Share on other sites
despite popular myth, MinGW can link to Microsoft''s .lib files for DirectX... this may not be true for all .lib files... but I''ve had no problem with the DX libs... the only problem with using the files directly out of the Microsoft SDK is that you have to explicitly explain to the linker where they are and what they are called..

What I''m getting at is that if you don''t find a solution for this problem, consider just getting the SDK from microsoft and using their libs.

##### Share on other sites
I tried it but I get 501+ linker errors (it doesn''t even display them all). What do you mean by "you have to explicitly explain to the linker where they are and what they are called.."?

##### Share on other sites
well you can''t add for example -lddraw to your command line... what I had to do was (in dev-cpp) go to Project->Project Options and add the explicit path and file name for my libs... so here''s what my "Linker Options/Optional Libs" line looks like:
c:\dev-cpp\dx7sdk\lib\ddraw.lib c:\dev-cpp\dx7sdk\lib\dxguid.lib

I hope that helps

##### Share on other sites
That''s what I do .

##### Share on other sites
Arg... I hope it''s not because we''re using different versions... that would suck... Maybe if you have time, post the first few errors you get?

##### Share on other sites
../../lib/d3dx8.lib(obj/i386/loadx.obj)(.text+0x11):.\loadx.cpp: undefined reference to ??3@YAXPAX@Z''
../../lib/d3dx8.lib(obj/i386/loadx.obj)(.text+0xeb):.\loadx.cpp: undefined reference to ??2@YAPAXI@Z''
../../lib/d3dx8.lib(obj/i386/loadx.obj)(.text+0x126):.\loadx.cpp: undefined reference to ??3@YAXPAX@Z''

and so on...

It''s so many that Dev-C++ is kind enough to put this message at the end: "There must be something terribly wrong with your code. Please fix it."

##### Share on other sites
Wow! I have no idea what I did but I got it down to 3 errors. All I did was start a project and it almost works.

inputcore.o(.text+0x5c):inputcore.cpp: undefined reference to DirectInput8Create@20'
graphicscore.o(.text+0x1f):graphicscore.cpp: undefined reference to Direct3DCreate8@4'
graphicscore.o(.text+0x1d7):graphicscore.cpp: undefined reference to D3DXMatrixPerspectiveFovLH@20'

 Sort of... Those were with linking to d3dx8d.lib. As soon as I linked to d3dx8.lib I got just as many errors .

[edited by - Raloth on November 8, 2003 1:17:14 PM]

bump

##### Share on other sites
what ver are you useing and how do you have your include and libs decleared i used 8 just switch to 9 had a few problems in 9 with dinput.lib i did not have any problems in 8

something like this

C:\Dev-Cpp\Lib\libdxguid.a
C:\Dev-Cpp\Lib\libd3d9.a
C:\Dev-Cpp\Lib\libd3dx9d.a
C:\Dev-Cpp\Lib\libgdi32.a
C:\Dev-Cpp\Lib\libdinput9.a
C:\Dev-Cpp\Lib\libdinput.a