| Cerburos (45) | |||||
|
I am using the free Bloodshed Dev-C++ compiler, version 4.9.9.2. I want to know if any of yall have used it, and if it is a good compiler to use. I am asking because I am dont know a lot about programming.Most of the codes I have copyed and pasted, trying to compile, simply wont. Here is the compile log when I try to compile snake:
Here is the source code,I found at planetsourcecode.com, for snake. Its been viewed 37055 times. I am guessing the problem is not in the code.
Can yall help me find out what exactly the problem is. Thank you. | |||||
|
|
|||||
| Bazzy (6275) | |
|
Your code doesn't work because you are missing graphics.h. An other problem is that that source code is calling standard headers in an old style. | |
|
|
|
| Cerburos (45) | |
|
"... an old style." ? What does that mean? Are there different standards? How do I fix it? Where can I get the graphics.h? Is there some place I can go and dl all the standard headers? I have alreaded googled several key word groups with no results. Im not even sure what to search for. Thank you bazzy, for your help. | |
|
|
|
| Bazzy (6275) | |||||
Old style:
new style:
(These headers are the only two in your code that need to be canged) What I found is: graphics.h http://www.koders.com/cpp/fid34D3E473F5E0CD0C1B6D41F6872F5BA400722F35.aspx?s=graphics.h this header is calling unistd.h http://linux.die.net/include/unistd.h that calls features.h http://linux.die.net/include/features.h ... Many of them ... look for all you need at http://linux.die.net/include | |||||
|
Last edited on
|
|||||
| Cerburos (45) | |
|
Thanks again Bazzy, you have been a huge help to me. Still I would like yo know if Dev-C++ v4.9.9.2 a good compiler to use. From what I have seen on google, it looks to be good. But I dont have the exp to know any better. Are there better compilers out there? | |
|
|
|
| Evote (35) | |
|
code::blocks is awesome! http://www.codeblocks.org/ | |
|
|
|
| QWERTYman (443) | |
|
Dev is good for a beginner. Also, try to avoid <graphics.h>. It is an old Borland resource, and Windows (and often compiler) specific. I haven't used Code::Blocks, so I don't know how good it is. | |
|
|
|
| Zaita (2292) | |
|
Errr christ, I feel like I type this 100x a week. Dev-C++ is NOT a compiler. It's an IDE. The Compiler it comes with by default is MingW (a windows port of GCC). Code::Blocks by default uses the same bloody compiler. Most C++ developers who need to write platform independent code will use MingW on Windows and GCC on Linux because they are pretty much identical. That code you've downloaded looks like a terrible mis-match of C and C++ that seems to be quite Borland Compiler specific. Just because alot of people have viewed it doesn't mean it's any good *cough*Paris Hilton Video*cough* | |
|
|
|
| Cerburos (45) | |
|
Zaita, I never did understand that video. Her boyfriend was such a Dou**e. How did he end up with a great* girl like Paris. Sure, the video sucked, but that BJ was second to none, that lucking SOB. * Great in the sence that she: is rich is very rich can get you into anywhere, anytime with any one umm, well she... AH... she like to play vaccuum, and she is good at it. OH did I mention she is very very very rich! | |
|
Last edited on
|
|