Results 1 to 19 of 19

Thread: Better Compiler?

  1. #1
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default Better Compiler?

    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.

  2. #2
    42 Reputation: 10
    Dennis56's Avatar
    Join Date
    Aug 2006
    Location
    дома
    Posts
    940
    Rep Power
    10

  3. #3
    Retired Staff Reputation: 75
    Eriond's Avatar
    Join Date
    May 2006
    Location
    Montreal
    Posts
    1,790
    Rep Power
    12

    Default

    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/d...displaylang=en


    Go for the PSDK-x86.exe. That's probably what you want. Unless you have a very new computer.
    THIS MA SIGNATURE

  4. #4
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    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.

  5. #5
    Retired Staff Reputation: 75
    Eriond's Avatar
    Join Date
    May 2006
    Location
    Montreal
    Posts
    1,790
    Rep Power
    12

    Default

    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?
    THIS MA SIGNATURE

  6. #6
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    How do I set it up to the MSVC?

  7. #7
    Retired Staff Reputation: 75
    Eriond's Avatar
    Join Date
    May 2006
    Location
    Montreal
    Posts
    1,790
    Rep Power
    12

    Default

    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.
    THIS MA SIGNATURE

  8. #8
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    Yea that didn't work also. Any other solutions? I would really apperciate either a better free compiler or another answer.

  9. #9
    Retired Staff Reputation: 75
    Eriond's Avatar
    Join Date
    May 2006
    Location
    Montreal
    Posts
    1,790
    Rep Power
    12

    Default

    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
    THIS MA SIGNATURE

  10. #10
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    Hmmmmmmm I dont' know the link and I hope it works with direct x.

  11. #11
    Orc's Breathmint Reputation: 10
    pb_destiny's Avatar
    Join Date
    May 2006
    Location
    Ottawa, Ontario, Canada
    Posts
    101
    Rep Power
    11

    Default

    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
    Been A Member Since May of 2005

  12. #12
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    Yea I use that but that also comes with errors that shouldn't be there. ANy other ones? Thanks though for the responds.

  13. #13
    Marios's Mustache Wax Reputation: 10

    Join Date
    Aug 2006
    Posts
    13
    Rep Power
    10

    Default

    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?

  14. #14
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    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.

  15. #15
    Marios's Mustache Wax Reputation: 10

    Join Date
    Aug 2006
    Posts
    13
    Rep Power
    10

    Default

    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?

  16. #16
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    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.

  17. #17
    Marios's Mustache Wax Reputation: 10

    Join Date
    Aug 2006
    Posts
    13
    Rep Power
    10

    Default

    Well with out some code there is no way I can help you. Good luck.

  18. #18
    Snakes Big Toe Reputation: 10

    Join Date
    Jul 2006
    Posts
    437
    Rep Power
    10

    Default

    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

  19. #19
    Cloud's Hair Spray Reputation: 10

    Join Date
    Aug 2006
    Posts
    60
    Rep Power
    10

    Default

    eh nobody knows where to get a better compiler free nor do they know how to fix the error.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •