Thanks for your response and your links. I did, by the way, try both Google and the forum search before asking a question. If I was inept at this and the question has actually been answered, please tell me. I hope this post is more appropriately written.
I am using Dev-C++ version 4.9.9.2, and keep files in the directory C:\C\ (the directory name C standing for the C language; I am keeping it out of "Program Files" as I read that I should avoid spaces in the path).
I opened the tutorial in the online help, and copied the following code:
include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
I then pressed the compile button, and, when prompted, saved the file as "Hello". A bunch of tabs jumped out at bottom. Under the "Compiler" tab, both the "Line" and the "File" fields were everywhere empty, but the "Message" field, on the first line, said "The system cannot find the file specified."
Let me ask a question. When you installed Dev, what version did you install, the exe only version or the full version, and where did you install it? Was it a virgin install (i.e. the machine did not have Dev on it before) or have you upgraded. If you upgraded, from what version and how?
OK, sorry, lots of questions.
I keep my stuff in c:\mycstuff
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My initial install was of this same version, but to C:\Program Files\C. I ran into problems that were mentioned in the FAQ, so I moved it to C:\C\, which obviously created problems again, so uninstalled it, deleted the directory, and then downloaded and installed again, which I had assumed would work like a virgin install. Should I uninstall again and download and install to a more normal-named directory like C:\mycstuff?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now, to uninstall, I strongly encourage you to use the steps outlined in "FAQ - Please Read Before Posting" for doing a clean uninstall. Because of the previous install to "Program Files", you will need to take your time, and make sure traces of Dev do not linger in places like c:\program that can sometimes be created. Take your time, and do it right. Scrub your system clean. (This does not automatically happen by just running the uninstall program)
Make sure, by the way, that the installer that you have is the full version (about 9 MB), and not the exe only version.
During the install process for 4.9.9.2, there is a point at which it opens a checkbox of things that you want to install. At the bottom of that list is an unchecked check box that asks if you want to delete old configuration files. Check it.
This should get you up and going. If, by chance, it does not, after you get through cussing me, make sure you tell us exactly what you did in your uninstall-reinstall process. Please do not just state something like "I did what you said"....please...it gets me in SO much trouble.
:)
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed the full version, like you said, and it worked like a charm! Thanks! I've been careful to remove everything I could think of after each uninstall, and will keep this in mind in the future as well. Thanks a lot!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're compiling it as C++ code. Try creating a new project but choose the language to be C. Make sure the file extention is .c and try compiling again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Note how the syntax of the g++ command is different? None of your library or header file paths are in there. I bet that, in addition, the path to your bin stuff is not in there, which accounts for not finding g++.
This is consistent with what I thought earlier, when I asked those questions...that I would still like to hear the answers to before I blurt something out that might be wrong...
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your response and your links. I did, by the way, try both Google and the forum search before asking a question. If I was inept at this and the question has actually been answered, please tell me. I hope this post is more appropriately written.
I am using Dev-C++ version 4.9.9.2, and keep files in the directory C:\C\ (the directory name C standing for the C language; I am keeping it out of "Program Files" as I read that I should avoid spaces in the path).
I opened the tutorial in the online help, and copied the following code:
include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
I then pressed the compile button, and, when prompted, saved the file as "Hello". A bunch of tabs jumped out at bottom. Under the "Compiler" tab, both the "Line" and the "File" fields were everywhere empty, but the "Message" field, on the first line, said "The system cannot find the file specified."
Here is the compile log:
Compiler: Default compiler
Executing g++.exe
g++.exe "C:\C\Hello.cpp" -o "C:\C\Hello.exe"
Execution terminated
Under "Information," in the "Total Errors" field, the number is 1. There is no size of output, as there is no output.
Thanks for any help you could offer. If I neglected to provide some piece of information, please tell me, and I gladly will.
Let me ask a question. When you installed Dev, what version did you install, the exe only version or the full version, and where did you install it? Was it a virgin install (i.e. the machine did not have Dev on it before) or have you upgraded. If you upgraded, from what version and how?
OK, sorry, lots of questions.
I keep my stuff in c:\mycstuff
Wayne
My initial install was of this same version, but to C:\Program Files\C. I ran into problems that were mentioned in the FAQ, so I moved it to C:\C\, which obviously created problems again, so uninstalled it, deleted the directory, and then downloaded and installed again, which I had assumed would work like a virgin install. Should I uninstall again and download and install to a more normal-named directory like C:\mycstuff?
No, I would install Dev where it wants,
c:\devcpp
I keep my programs / projects and the like in
c:\mycstuff
Now, to uninstall, I strongly encourage you to use the steps outlined in "FAQ - Please Read Before Posting" for doing a clean uninstall. Because of the previous install to "Program Files", you will need to take your time, and make sure traces of Dev do not linger in places like c:\program that can sometimes be created. Take your time, and do it right. Scrub your system clean. (This does not automatically happen by just running the uninstall program)
Make sure, by the way, that the installer that you have is the full version (about 9 MB), and not the exe only version.
During the install process for 4.9.9.2, there is a point at which it opens a checkbox of things that you want to install. At the bottom of that list is an unchecked check box that asks if you want to delete old configuration files. Check it.
This should get you up and going. If, by chance, it does not, after you get through cussing me, make sure you tell us exactly what you did in your uninstall-reinstall process. Please do not just state something like "I did what you said"....please...it gets me in SO much trouble.
:)
Wayne
I installed the full version, like you said, and it worked like a charm! Thanks! I've been careful to remove everything I could think of after each uninstall, and will keep this in mind in the future as well. Thanks a lot!
Super! Way to stick with it!
Wayne
You're compiling it as C++ code. Try creating a new project but choose the language to be C. Make sure the file extention is .c and try compiling again.
Not really the issue:
You can compile most C code with the C++ compiler (not the other way around though). That is not the problem at hand.
Wayne
Now, one thing that I did notice. Your paths are strange. I took your code, and compiled it, as C++, as you did. Here is my log:
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\testit.cpp" -o "C:\Dev-Cpp\testit.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
Execution terminated
Compilation successful
Note how the syntax of the g++ command is different? None of your library or header file paths are in there. I bet that, in addition, the path to your bin stuff is not in there, which accounts for not finding g++.
This is consistent with what I thought earlier, when I asked those questions...that I would still like to hear the answers to before I blurt something out that might be wrong...
Wayne