Ok, I am just now getting into C++ and I just downloaded and installed Dev-Cpp. I made a new project named testproj, made it a C++ console program, saved the .dev file to C:\testproj\testproj.dev, and typed:
#include <iostream.h>
int main()
{
cout << "Hello World!\n";
return 0;
}
Into the text window labeled main.cpp. I then saved main.cpp to the same directory as testproj and named it main.cpp. After that I clicked save all from the file menu. Next I hit the compile button and got this error in the compiler tab:
Line: 2 File: C:\testproj\2 Message: unable to run program file. What is this \2, and how do I get my programs to compile?
Thanks,
Thad
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, I downloaded the exe only. Is that not was I was supposed to do? I just now downloaded and installed the 13 or some-odd one, and it gives me the same error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The exe only version has no compiler, which leads to your error. There is a warning to that effect on the download page, didn't you read it?
You need to uninstall dev, delete the directories, restart, then reinstall the full version. Make sure you get rid of the vesitiges of your previous installs.
Check back afterwards. Don't forget to copy and paste (not paraphrase) you compile log, and post the code you are using when errors arise.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And you did not tell folks enough about your setup when you posted.
It should not have to take several questions to find out that you were running with your own compiler. If Ihad known that from the beginning, I could have avoided wasting some time for you, and me.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, I am just now getting into C++ and I just downloaded and installed Dev-Cpp. I made a new project named testproj, made it a C++ console program, saved the .dev file to C:\testproj\testproj.dev, and typed:
#include <iostream.h>
int main()
{
cout << "Hello World!\n";
return 0;
}
Into the text window labeled main.cpp. I then saved main.cpp to the same directory as testproj and named it main.cpp. After that I clicked save all from the file menu. Next I hit the compile button and got this error in the compiler tab:
Line: 2 File: C:\testproj\2 Message: unable to run program file. What is this \2, and how do I get my programs to compile?
Thanks,
Thad
What version of Dev did you download, with what version of gcc?
Was the installer download at least 10 Megabytes?
Did you use a folder that was names something like "testproj 2"?
Wayne
GNU tools do not generally work correctly with file paths containing spaces.
Clifford
No, I downloaded the exe only. Is that not was I was supposed to do? I just now downloaded and installed the 13 or some-odd one, and it gives me the same error.
The exe only version has no compiler, which leads to your error. There is a warning to that effect on the download page, didn't you read it?
You need to uninstall dev, delete the directories, restart, then reinstall the full version. Make sure you get rid of the vesitiges of your previous installs.
Check back afterwards. Don't forget to copy and paste (not paraphrase) you compile log, and post the code you are using when errors arise.
Wayne
Yea, thanks, but I figured out what I did. I didnt set a path to the compiler in the binary path.
And you did not tell folks enough about your setup when you posted.
It should not have to take several questions to find out that you were running with your own compiler. If Ihad known that from the beginning, I could have avoided wasting some time for you, and me.
Wayne