Weird error when building a debug DLL

Ah ok (yes to BTS 3.19). I don't know of another source for the PSDK. Microsoft doesn't have it; I got it from Kael like most everyone.
 
Yes that file is a bit over 1MB. However in the install process it downloads around 94MB from Microsoft.

I'll try it again I guess. Hope the download doesn't crash half way.
 
Code:
c:\Modding\PIG Mod\CvGameCoreDLL\CvGameCoreDLL.h|17|fatal error C1083: Cannot open include file: 'windows.h': No such file or directory|
||=== Build finished: 1 errors, 0 warnings ===|

I installed codeblocks and am now getting this error when I try to compile the source files for 3.19. I used the instructions of Kael's including the extra bits necessary for 3.19.

I've had this error in the past but I was able to fix it. I can't fix it this time.
If I understand right, the file windows.h needs to be findable in one of the search directories of codeblocks.
I have set

Code:
C:\Program Files\Microsoft Platform SDK\Include
as a search directory under Settings -> Compiler and debugger -> Search directories, Compiler tab
as well as the include folder inside the VS C++ toolkit 2003 install. This instruction was part of Kael's guide.

I can navigate to "C:\Program Files\Microsoft Platform SDK\Include" and I see the windows.h file is sitting there. It is a file of 6,334 bytes.

So I'm stumped. Why on earth can't it find the file when it's there?

The file it's tripping up on is CvGameCoreDLL.h at line 17:
Code:
#include <windows.h>

Any ideas or tips?
 
lol I'm an idiot.

I have a makefile compiling as I write! :D

I didn't get codeblocks to work - still not sure what the problem is there but I tried using the makefile method again AFTER I noticed this:

In glider's makefile...
Code:
#TOOLKIT=C:\Program Files\Microsoft Visual C++ Toolkit 2003
#PSDK=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
TOOLKIT=C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003
PSDK=C:/Program Files/Microsoft SDKs/Windows/v6.0A

Here it helps to use an editor which colour codes the text, because I was editing the lines that were already commented out!
Now that I've fixed the lines that aren't commented, I think it might be all dandy now.
 
:lol: Don't you just love those errors? I know I do. As for Code::Blocks, I would double-check that it finds the header by trying to open it via that #include. Right-click the <windows.h> and see if there's a "Open [include] file" command in the menu that pops up. If so, does it find it when you select that?
 
When I right click on it there is the option to Open #include file: 'windows.h'. When I try that, I get a popup titled Warning, with text "Not found: windows.h"
 
I'd say wherever you have specified the include folder is either a) not being seen by that project or b) done incorrectly. There are probably two places to specify these folders (includes and libraries): for the project and for the entire application (all projects).

Make sure you didn't put the include folder into the library folder area.
 
Back
Top Bottom