View Full Version : Better Compiler?
blade55555
08-27-2006, 10:38 PM
Ok i'm working on c just plain c with jonathan S. Harbour's book to beginning game programming. Will i'v come across a problem. Whenever I use dec-c++ there is almost always an error when there is no error there! So I used Microsoft Visual c++ 2005 edition. There is a the d3d9.h file was not in the include list (i'v done everything i'm supposed to I got all the SDK and directx9 downloaded and installed. Also it can't find windows.h either. So i'm looking for a compiler that actually works and its free! If you can help thank you so much in advance.
Dennis56
08-27-2006, 10:41 PM
www.google.com
Eriond
08-28-2006, 12:23 AM
You need to download the platform SDK seperately from the MSVC. I had the exact same problem. Just download the platform SDK.
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
Go for the PSDK-x86.exe. That's probably what you want. Unless you have a very new computer.
blade55555
08-28-2006, 12:31 AM
Yea I downloaded that. So anybody know any other ones? Cause I still have the problem and i'm done trying to find how to fix it unless there is another way somebody can think of.
Eriond
08-28-2006, 01:47 AM
You downloaded and installed it... but did you set it up in MSVC so that the include directories you installed were being parsed by the compiler?
blade55555
08-28-2006, 04:24 AM
How do I set it up to the MSVC?
Eriond
08-28-2006, 01:49 PM
I'll check now..
Options -> Projects & Solutions -> VC++ Directories
Show Directories for: Include Files (up at the top right corner)
Click the folder button, or new line.
Then put this as the line: C:\Program Files\Microsoft Platform SDK\Include
That's the default path anyway. You might need to modify it to fit wherever you installed your SDK.
blade55555
08-28-2006, 08:18 PM
Yea that didn't work also. Any other solutions? I would really apperciate either a better free compiler or another answer.
Eriond
08-28-2006, 09:05 PM
If you want to use DX, I really can't suggest anything. Try Code::Blocks. I've heard that's a good IDE, thouhg I'm not sure if it supports directX
blade55555
08-28-2006, 09:39 PM
Hmmmmmmm I dont' know the link and I hope it works with direct x.
pb_destiny
08-29-2006, 11:34 PM
Okay, I use DevC++ because it’s free and very easy to use. I actually like it more than Visual Studio and find it is the easiest free compiler to work with. So far, I haven’t run into any problems using it and I know it’s widely used by many programmers.
Here Is The Download Link:
http://www.bloodshed.net/dev/devcpp.html
-PB
blade55555
08-30-2006, 02:57 AM
Yea I use that but that also comes with errors that shouldn't be there. ANy other ones? Thanks though for the responds.
RobertW
08-30-2006, 03:40 AM
Okay you keep saying something about "error that should not be there". If two different compliers are giving you the same error then the error is there.
Is it the same error as what you originally post? If so did you even look at the link I gave you? I am telling you that the compiler does not know where the heck to find the windows.h file. You could fully qualify the path for the compiler #include “C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\windows.h” or where ever it is on your machine, or you could try what the link above says and not have to fully qualify the path in every applicaiton you write.
If it is not this error then what are the errors you are getting now?
blade55555
08-30-2006, 03:58 AM
Will this is on Dev now. I even copied and pasted the whole code (after seeing the error { no wayt o fix it and thats hwo i'm supposed to do it). So I decided to copy and paste the book code. I still get that error so It has to be the compiler. Unless there was a recent update to Dev.
RobertW
08-30-2006, 01:22 PM
I've copied and pasted code from sources such as books too and have had errors too. This still does not mean it is the compiler fault or error. It could mean the code is not compatible with the compiler you are trying to use. Can you point me to what you are trying to compile, a link or something?
blade55555
08-30-2006, 10:21 PM
Hmmm will i'm trying to compile (I dont' got any links ><). But i'm trying to compile where circles well keep appearing on the screen (full screen mode). Then you press Esc to exit the program. That's on Dev-C++. But on microsoft visual the windows.h does not exist and d3d9.h was not found it he include files (which i'v put it there yet I still get the error). I'm going to keep searching for a good compiler that will actually work.
RobertW
08-31-2006, 03:08 AM
Well with out some code there is no way I can help you. Good luck.
Cj Shadows
08-31-2006, 04:31 AM
I have a similar problem which is why i might learn somthing else. When I try to compile the code it says 'no errors founf' and 'Cannot run the program' IDK how to fix it either :(
blade55555
09-01-2006, 09:30 PM
eh nobody knows where to get a better compiler free nor do they know how to fix the error.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.
SEO by
vBSEO 3.2.0