Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Missing some header files.

Author
Message
LordSorcre
19
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 7th Apr 2005 07:54
fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

After trying to compile one of the examples, I got that error. So I googled it and downloaded the file. Then It asked me for 2 more files. After adding those files, I got 25 syntax errors in the header files. Has anyone experienced this before?
IanM
Retired Moderator
20
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Apr 2005 07:59
You need to download and install the DirectX SDK, and let it update the paths in Visual Studio for you. That will get rid of all of your missing include errors.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
LordSorcre
19
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 7th Apr 2005 08:09
Thanks, It got rid of the header files. But now it's complaining about d3dx8.lib
zao420
19
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 7th Apr 2005 08:12
doy uo have visual studio 6 if you do you also need the direct x extra pack

http://cavesoft.no-ip.com
WIP Version of my site. Usally it is offline.
http://dev-cavesoft.no-ip.com
LordSorcre
19
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 7th Apr 2005 08:15
DirectX extra pack?
zao420
19
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 7th Apr 2005 13:23
LordSorcre
19
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 8th Apr 2005 14:04
Nothing. It asks me for d3dx8.lib, I hsave d3dx9.lib
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 8th Apr 2005 19:33
Originally you said :

Quote: "fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory"


But now your saying it cant find d3dx8.lib ?

If you use DX9 it certainly wont need d3dx8.lib, unless you have changed the DIRECT3D_VERSION value to use DX8

I would check your pathing for include and library files, and make sure nothing sets or changes DIRECT3D_VERSION

x1b
18
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 9th Apr 2005 06:36 Edited at: 9th Apr 2005 07:46
Well, he's right. I'm going through the exact same issue. I can compile no problem. But soon as I .exe I get "
Quote: "Linking...
LINK : fatal error LNK1104: cannot open file "d3dx8.lib""


I have the April 2005 DX 9 SDK and DX 9.0c installed and checked my paths on VS 6. They are all there. example in my Directories > Include Files is
Quote: "Crogram FilesMicrosoft DirectX 9.0 SDK (April 2005)Include"
and in my Library is
Quote: "Crogram FilesMicrosoft DirectX 9.0 SDK (April 2005)Libx86"
and
Quote: "CROGRAM FILESMICROSOFT DIRECTX 9.0 SDK (APRIL 2005)LIB"


And everything else checks out as well. Really annoying.

x1b

- This message is made of 100% recycled bits and bytes
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Apr 2005 07:02
In what order are your lib files ? It should be something like that in the picture.

Attachments

Login to view attachments
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Apr 2005 07:03
What version of Visual Studio are you using ?

billy the kid
18
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 9th Apr 2005 07:14
Try making the include and lib statements the very first thing. I know sometimes this matters.
x1b
18
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 9th Apr 2005 07:33 Edited at: 9th Apr 2005 07:39
attempting to compile


I installed Visual Studio 6 /w VC++ 6 (obviousley) then updated w/ SP6 for VS 6 then installed DarkSDK then the April 2005 DirectX SDK. Havent changed anything since.

And Includes are in order of:
Quote: "C:\Program Files\Microsoft DirectX 9.0 SDK (April 2005)\Include
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\The Game Creators\Dark Game SDK\Include"


and Librarys are:
Quote: "C:\Program Files\Microsoft DirectX 9.0 SDK (April 2005)\Lib\x86
C:\PROGRAM FILES\MICROSOFT DIRECTX 9.0 SDK (APRIL 2005)\LIB
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
C:\Program Files\The Game Creators\Dark Game SDK\Lib\VS6"


If I use any other order then I get 24 compile errors.

x1b

- This message is made of 100% recycled bits and bytes
LordSorcre
19
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 9th Apr 2005 12:39


Thats the script I'm trying to compile. I'm using VC6 (standard) and the includes are in the right order

Still get

LINK : fatal error LNK1104: cannot open file "d3dx8.lib"
Error executing link.exe.
Ancient Lady
Valued Member
18
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 10th Apr 2005 00:17
I had a similar problem and resolved it by finding the dx8sdk and installing it (I stuck it in C:\dx8sdk for simplicity), adding the new path for the includes and libraries in the project and putting the directory in my system path. This is not optimal, but it works.

I just searched for the download again (D3DX8_0b.exe), here is the URL:
[href]
http://www.microsoft.com/downloads/details.aspx?FamilyID=fc60231e-895d-489d-b796-e0fcac82b553&displaylang=en
[/href]

Since you are only interested in the libraries and headers, you don't need to worry about the page saying that you need the Direct 8.0 SDK. You can't get it anyway.

Either there is some dependency in some DX9 file that appears to need the older DX8 stuff (and there may be compile/link switches to fix this???). Or the dependency is somehow in the DgSDK.

Good luck.

Cheers,
Ancient Lady
Smithy
18
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 19th Apr 2005 18:35
I am using VC++ 6 and all worked fine.
Now, I've installed the DirectX SDK + Extras (February)
and I have the same error:
LINK : fatal error LNK1104: cannot open file "d3dx8.lib"

My paths are correct.

I will download the DirectX SDK + Extras (April) and hope
that it will work again.

Smithy

//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"; VC++ 6.0; Delphi; ADSL;
scooby bloke
18
Years of Service
User Offline
Joined: 4th Nov 2004
Location:
Posted: 19th Apr 2005 21:36
When I used VC6, I used the October 2004 dx9 sdk and extras packages, and it worked fine first time I tried it.
Smithy
18
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 19th Apr 2005 23:55
Same here, with the "old" ( = october ) SDK it worked fine.
After updating yesterday... error

//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"; VC++ 6.0; Delphi; ADSL;
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Apr 2005 00:07
I presume you are using the latest SDK extras ?

Smithy
18
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 20th Apr 2005 01:22 Edited at: 20th Apr 2005 01:26
I am using the February update and the February Extras.
After unzipping the Extras, I moved the files to the corresponding folders.
(lib to lib etc)

I am not really sure what SP I am using but with the October SDK,
the dgSDK was working fine.

Right now, I'm downloading the April update...
but I can't find the Extras download...

//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"; VC++ 6.0; Delphi; ADSL;
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Apr 2005 07:04
Its there somewhere...

Smithy
18
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 21st Apr 2005 02:17 Edited at: 21st Apr 2005 02:18
When I switch back the paths to the october update, then I can run the app but it crashes at exit.

Now, for the DirectX SDK (april 2005) extra.
Microsoft Download Center Search:


It seems as if it isnt available yet..

//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"; VC++ 6.0; Delphi; ADSL;
Smithy
18
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 21st Apr 2005 03:16
After installing the April update of the DirectX SDK, I still have the same error. (cannot open file "d3dx8.lib")

I just ordered VC++ .NET 2003.
Maybe this will work.

*still scanning the space of M$ for the april extra package*

//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"; VC++ 6.0; Delphi; ADSL;
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Apr 2005 04:24
Quote: "then I can run the app but it crashes at exit"

That sounds like it can access the DirectX DLL's...
But get VS 2003 .net anyway - its better than VS 6 anyway...

Smithy
18
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 21st Apr 2005 20:31
I just noted the Edit2 from IanM in the FAQ-thread
(http://forum.thegamecreators.com/?m=forum_view&t=43517&b=22)

QUOTE:
[EDIT 2]
For VC++6, the last SDK that will work with the DarkSDK is the October DX SDK. It seems that Microsoft has finally stopped supporting VC6++.

Ok, so it's clear why I can't make the thing work.
Will wait for my .NET 2003 version then.

Thanks anyway! (Bouncy Brick)

//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"; VC++ 6.0; Delphi; ADSL;
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Apr 2005 03:59
Thats okay.

Login to post a reply

Server time is: 2023-02-06 20:45:09
Your offset time is: 2023-02-06 20:45:09