Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: Mitosis on October 11, 2004, 07:16 AM

Title: Having some problems with my compiler
Post by: Mitosis on October 11, 2004, 07:16 AM
Well last night I just downloaded the latest version of Dev C++, so I decided to get back into it. I know my program isn't finished yet, but I keep getting an error when I try to compile. Anyone know what it is?

(http://www.wolfness.com/upload/codeerror.JPG)

Thanks in advance!
Title: Re: Having some problems with my compiler
Post by: Mephisto on October 11, 2004, 08:57 AM
http://www14.brinkster.com/aditsu/dev-cpp-faq.html#runfile

Btw, in C++ shouldn't it be #include <cstdlib> and not #include <stdlib.h>?
Title: Re: Having some problems with my compiler
Post by: Mitosis on October 11, 2004, 09:48 AM
That link doesn't load. And I tried #include <cstdlib> and I recieve the same error.
Title: Re: Having some problems with my compiler
Post by: Meh on October 11, 2004, 11:43 AM
Try iostream.h
I am no good in C++ or C but just a thought.
Title: Re: Having some problems with my compiler
Post by: Mitosis on October 11, 2004, 01:34 PM
Doesn't work either.
Title: Re: Having some problems with my compiler
Post by: iago on October 11, 2004, 01:44 PM
It doesn't look like a problem with the code, the code itself looks fine, it looks like a configuration error of some sort with the compiler.
Title: Re: Having some problems with my compiler
Post by: Skywing on October 11, 2004, 01:56 PM
BTW, you should avoid using system("PAUSE") like that.  A better option is to just ask for some input with cin.
Title: Re: Having some problems with my compiler
Post by: Mitosis on October 11, 2004, 02:16 PM
Ok WTF, I deleted that Dev C++ and installed an old version...now it says that there is 70 errors. This is really weird.
Title: Re: Having some problems with my compiler
Post by: MyndFyre on October 11, 2004, 06:19 PM
check your paths.
Title: Re: Having some problems with my compiler
Post by: Mitosis on October 11, 2004, 07:49 PM
Well, I reformatted and re-downloaded it. It works fine now. That was...odd.
Title: Re: Having some problems with my compiler
Post by: Mephisto on October 12, 2004, 09:39 AM
That link worked for me...Go on Google and type this in: Dev-C++ Errors "Unable to run program file" and you should find the unofficial FAQ on Dev-C++ errors.  Yes, as MyndFyre suggested, it is a problem with your library paths, and that FAQ has the solution.
Title: Re: Having some problems with my compiler
Post by: Adron on October 12, 2004, 11:20 AM
Quote from: Mitosis on October 11, 2004, 07:49 PM
Well, I reformatted and re-downloaded it. It works fine now. That was...odd.

You reformat over a compiler problem? Doesn't that sound like a bit overkill?
Title: Re: Having some problems with my compiler
Post by: Mitosis on October 12, 2004, 02:04 PM
Lol, I guess. But I was having problems with some other stuff. And I wasn't orgranising things properly like I did before. Man IBM technology is great, don't need O/S Disks!
Title: Re: Having some problems with my compiler
Post by: dxoigmn on October 12, 2004, 02:10 PM
Quote from: Adron on October 12, 2004, 11:20 AM
You reformat over a compiler problem? Doesn't that sound like a bit overkill?

Reformatting is the solution to all your computer problems! :P
Title: Re: Having some problems with my compiler
Post by: Skywing on October 12, 2004, 09:58 PM
Quote from: dxoigmn on October 12, 2004, 02:10 PM
Quote from: Adron on October 12, 2004, 11:20 AM
You reformat over a compiler problem? Doesn't that sound like a bit overkill?

Reformatting is the solution to all your computer problems! :P
Reformatting hides the problem so that when it occurs again, you don't have a good way of dealing with it.
Title: Re: Having some problems with my compiler
Post by: Meh on October 13, 2004, 07:09 AM
Quote from: dxoigmn on October 12, 2004, 02:10 PM
Quote from: Adron on October 12, 2004, 11:20 AM
You reformat over a compiler problem? Doesn't that sound like a bit overkill?

Reformatting is the solution to all your computer problems! :P
I thought the solution was a hammer.