SoulSkorpion
Technical User
(note: I originally posted this on another forum, and nobody was able to help me. I have since then tried with the latest DirectX SDK, with no change).
I'm trying to learn DirectX, using code out of a "teach yourself DirectX" book, using the DirectX SDK on the CD that comes with the book (version 8. Yes, I know it's out of date, but this way I know that the code in the book is going to get exactly what it's expecting).
Anyway, I can't get one of the examples to compile. Well, technically I can get it to compile but I can't get it to link in the DirectX stuff. I've tried using MSVC++ 5 (the latest version I could get my hands on) and Bloodshed's Dev-C++.
With MSVC++, when I try to build the projet I get the single error message:
c:\DXSDK\lib\d3d8.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x3b16034b
which is Greek to me. And with Dev-C++ I get:
[Linker error] undefined reference to 'Direct3DCreate8@4'
I thought maybe it had something to do with including the DirectX libraries and whatnot in the standard libraries (you know, so the files themselves don't have to be copied and manually included with the project each time) but even copying the files directly and including them didn't work. I can't decipher these error messages; can anyone else?
I've tried to change the options so that the DirectX stuff gets included in the standard library (you know, so that you don't have to use ""s and copy the files across and can use <>s instead? As in #include <d3d8.h> instead of #include "d3d8.h"
.
SoulSkorpion
PS: I would include the code in this post, but there's quite a lot of it and I don't think the problem's in the code. If anyone really wants to see it, I will.
I'm trying to learn DirectX, using code out of a "teach yourself DirectX" book, using the DirectX SDK on the CD that comes with the book (version 8. Yes, I know it's out of date, but this way I know that the code in the book is going to get exactly what it's expecting).
Anyway, I can't get one of the examples to compile. Well, technically I can get it to compile but I can't get it to link in the DirectX stuff. I've tried using MSVC++ 5 (the latest version I could get my hands on) and Bloodshed's Dev-C++.
With MSVC++, when I try to build the projet I get the single error message:
c:\DXSDK\lib\d3d8.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x3b16034b
which is Greek to me. And with Dev-C++ I get:
[Linker error] undefined reference to 'Direct3DCreate8@4'
I thought maybe it had something to do with including the DirectX libraries and whatnot in the standard libraries (you know, so the files themselves don't have to be copied and manually included with the project each time) but even copying the files directly and including them didn't work. I can't decipher these error messages; can anyone else?
I've tried to change the options so that the DirectX stuff gets included in the standard library (you know, so that you don't have to use ""s and copy the files across and can use <>s instead? As in #include <d3d8.h> instead of #include "d3d8.h"
SoulSkorpion
PS: I would include the code in this post, but there's quite a lot of it and I don't think the problem's in the code. If anyone really wants to see it, I will.