I was able to compile it using Dev-C++ 4.9.5.0 (that is, after I changed
in nNumberofArgs to int nNumberof Args).
Try uninstalling Dev-C++ and reinstall it in a path without ++ in it.
Example (this is my path): E:\Dev\Cxx\Dev-Cpp
Jim Watters
I'm just a beginner
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of David
Paul
OK, I just downloaded the 4.9.5 Beta version of Dev-C++, the one that
includes Mingw and GDB 5. I am using the book "C++ for Dummies" to try
to teach myself C++. My ultimate goals are to be able to write a chess
program and some simulation software (chess for fun, simulations for
work, as I am a statistician).
I entered the program:
/* Program to convert temperature from Fahrenheit to Celcius degrees
*/ #include <stdio.h> #include <iostream.h>
int main(in nNumberofArgs, char* pszArgs[])
{
/* enter the temperature in Celcius */
int celcius;
cout << "Enter the temperature in Celcius:";
cin >> celcius;
/* calculate the conversion from Celcius to Fahrenheit */
int factor;
factor = 212 - 32;
int fahrenheit;
fahrenheit = factor * celcius/100 + 32;
cout << "Fahrenheit value is:";
cout << fahrenheit;
return 0;
}
and when I tried to compile it, I got an error. The last element in the
log file before compiling stopped was the "-L 'C:\Program
Files\C++\Dev-C++\lib' execution terminated" message. When I tried to
use the Debug feature, there was an error saying that GDB.exe couldn't
be located. Furthermore, when I use the update feature in the Tools
menu, I get the error
"Error: your devcpp.cfg file is missing."
If anyone could point out what I need to do to get up and running, I
would really appreciate it. Do I need to change anything in the PATH
environmental variable to point at some of these files?
Thanks in advance,
david paul
|