Missing Windows.h OBJBASE.h OLE2.h
by Dalore · in Torque Game Engine Advanced · 01/17/2006 (10:28 am) · 11 replies
These are the three fatal errors im getting when compiling TSE under Visual Studio Express edition.
5>../engine\platformWin32/platformWin32.h(9) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
5>gfxDevice.cpp
5>C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Include\dxdiag.h(13) : fatal error C1083: Cannot open include file: 'ole2.h': No such file or directory
I've tried following several post suggestions here and past TGE post. But most of these post are out of date due to the microsoft downloads content change since their post. This is the best results I have gotten. I have instaled the windows platform sdk, and directx sdk. Am I missing something. Should I be editing the files that call these include files?
Thanks in advance for your help
5>../engine\platformWin32/platformWin32.h(9) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
5>gfxDevice.cpp
5>C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Include\dxdiag.h(13) : fatal error C1083: Cannot open include file: 'ole2.h': No such file or directory
I've tried following several post suggestions here and past TGE post. But most of these post are out of date due to the microsoft downloads content change since their post. This is the best results I have gotten. I have instaled the windows platform sdk, and directx sdk. Am I missing something. Should I be editing the files that call these include files?
Thanks in advance for your help
About the author
#2
01/17/2006 (5:46 pm)
Looks like you need to set up your DXSDK directories for VC++. See the docs or google the forums for how to do this.
#3
Any other suggestions.
As I said I have followed the other post on this subject. I.E. setting up directories, adding additional dependicies, downloading platform & directX SDK etc...
The problem is these files are called for in a directory where they don't exist.
I'm just wondering if anyone has had similar experinces and maybe shed light on how they fixed the issues.
01/17/2006 (7:16 pm)
I have set these directories in VC++ settings and on top of the list. These files are simply not in the DXSDK any longer. I have done the Full SDK for DX (October 2005 & then December 2005) these do not have ole2.h or objbase.h in the SDK.Any other suggestions.
As I said I have followed the other post on this subject. I.E. setting up directories, adding additional dependicies, downloading platform & directX SDK etc...
The problem is these files are called for in a directory where they don't exist.
I'm just wondering if anyone has had similar experinces and maybe shed light on how they fixed the issues.
#4
windows.h is part of it and was stripped from VC 2005 Express Edition
you need the Platform SDK and maybe a guide on how to include it here :)
i took these steps to setup VC++ EE for TSE
1. Install VC++ EE
2. Install the Platform SDK, set it up and test it with a simple win32 application
3. if it works then install DirectX 9c (December Update) and set the paths in VC++
4. Open and convert the TSE solution and hit compile.
01/18/2006 (4:35 am)
You are missing the Platform SDK in your includewindows.h is part of it and was stripped from VC 2005 Express Edition
you need the Platform SDK and maybe a guide on how to include it here :)
i took these steps to setup VC++ EE for TSE
1. Install VC++ EE
2. Install the Platform SDK, set it up and test it with a simple win32 application
3. if it works then install DirectX 9c (December Update) and set the paths in VC++
4. Open and convert the TSE solution and hit compile.
#5
The best info I've found from MSDN is to copy your Lib, Include, and Bin folders from the SDK and put it into a folder named PlatformSDk in Visual studios 8 VC folder. This has fixed everything for TGE except the LNK 1180 error. That has to do with the ljpeg.lib somehow.
I just wish there was an up to date resource here for those of us trying to slog our way through this process.
Alot of folks just want to say "Use the search engine" Well Ive been doing that for 3 days now. Still I have no build on TGE, RTS Starter or TSE. I've even given it a go with the TBE still no luck. I ask any of you who reply with a give the search feature a try to experiment a bit. Just put in something and see how many results come back.
Looking at the demo builds I say you've got a great product here. The only issue I have is try to make your way through so much info on the sites with little specifics and very few up to date items.
@Florian Thank you for helping. At least you got me pointed to somewhere that helped. I got VS doing as it should. Now I just gota figure out the build problems and that one lininking issue.
01/18/2006 (9:32 pm)
Thanks for the input. I've reverted back to just trying to get TGE to compile.The best info I've found from MSDN is to copy your Lib, Include, and Bin folders from the SDK and put it into a folder named PlatformSDk in Visual studios 8 VC folder. This has fixed everything for TGE except the LNK 1180 error. That has to do with the ljpeg.lib somehow.
I just wish there was an up to date resource here for those of us trying to slog our way through this process.
Alot of folks just want to say "Use the search engine" Well Ive been doing that for 3 days now. Still I have no build on TGE, RTS Starter or TSE. I've even given it a go with the TBE still no luck. I ask any of you who reply with a give the search feature a try to experiment a bit. Just put in something and see how many results come back.
Looking at the demo builds I say you've got a great product here. The only issue I have is try to make your way through so much info on the sites with little specifics and very few up to date items.
@Florian Thank you for helping. At least you got me pointed to somewhere that helped. I got VS doing as it should. Now I just gota figure out the build problems and that one lininking issue.
#6
can you post the link error you get?
01/19/2006 (3:49 am)
To get TGE 1.4 to compile i used the same steps like TSE and additionaly followed this guide here.can you post the link error you get?
#7
Building TGE 1.4 and TSE is pretty well documented now, but I cant speak for the RTS kit as I do not own that.
01/19/2006 (5:38 am)
A few threads below this one is Compiling TSE with VS 2005 Express Edition which covers it all very nicely.Building TGE 1.4 and TSE is pretty well documented now, but I cant speak for the RTS kit as I do not own that.
#8
I got a good build on TGE tonight.
I'll start tackeling the TSE next.
That link error. For what ever reason. I had to build the ljpeg.lib project first then build the rest. I thought Visual studio projects had a build list that took care of that.
Oh well now I know.
01/19/2006 (8:05 pm)
Hey thanks Florian & Vernon.I got a good build on TGE tonight.
I'll start tackeling the TSE next.
That link error. For what ever reason. I had to build the ljpeg.lib project first then build the rest. I thought Visual studio projects had a build list that took care of that.
Oh well now I know.
#9
TSE built on the first try without a problem.
01/20/2006 (12:02 pm)
Again thanks for every thing.TSE built on the first try without a problem.
#10
windows.h error
objbase.h
now i have the sdk installed and I followed the steps in both tutorials. I think I may be missing files.
torque sdk.sbn and torquesdk.suo
02/07/2006 (10:07 am)
Ok this is what I'm getting,windows.h error
objbase.h
now i have the sdk installed and I followed the steps in both tutorials. I think I may be missing files.
torque sdk.sbn and torquesdk.suo
#11
Have you looked at my other post? If your using VS express edition it should help.
My other post
One of the best solvers for me was copying the platform dircetories as described.
02/07/2006 (10:51 am)
@DavidHave you looked at my other post? If your using VS express edition it should help.
My other post
One of the best solvers for me was copying the platform dircetories as described.
Torque Owner Dalore