Problem: when I attempt to complie and run my "Hello World" code, I get an error stating "Source File Not Complied".
When I checked the Complie Log the following was displayed:
Complier: Default Complier
Executing gcc.exe...
gcc.exe "E:\c_programming\test.c" -o "E:\c_programming\test.exe" -|"E:\c_programming\Dev-Cpp\include" -L "E:\c_programming\Dev-Cpp\lib"
gcc.exe: installation problem, cannot exec 'cc1': No such file or directory
Execution terminated
Compilation successful
Trouble Shooting Attempts:
1) Since I followed an example from You Tube, I double checked the syntax and it is exactly the same
2)I know I installed the program correctly because I ran a C++ (.cpp) test (example) and no problems
3) Since the C++ example worked, I made sure the source code I was using was .c and not .cpp
4)I read through the forum to see if I could glen any answers and saw where maybe I should not contain my source file int he same directory as the Dev-C++ so I moved the file - still nothing.
Directory Setup:
Application/IDE code
E:\c_programming\Dev-Cpp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay ... follow up three .. sorry .. i found the Please Read Link ... I am glad I was not too far off ... cannot fixt the title of the post now, but I will not make that mistake again...
Here are other pertinent information needed:
I am running Windows Vista,I think I have Norton Anti-Virus 2008 (my husband just loaded it last night)
(2)I think I answered this above. The IDE is located at E:\c_programming\Dev-Cpp
My project files are not located at
E:\c_programming_projects
I downloaded beta which is displayed a 4.9.9.2 and have not upgraded since
(4)As far as I know I downloaded the full version - first option on the download listing
I hope I have everything now...
I am trying to get ready to take my c programming course and wanted to get a head start since it will be on online course.
Thank you in advance for any and all assistance.
Ms. Needy Newbie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Wayne -> I thought the installation was fine because the .cpp code worked.
Clifford -> thank you. The getch() or now getchar() was meant to make the screen stay open so I can see if the code worked
Again, thank you both ... I have marked the "Please Read First link" to my favorites - I imagine most of my questions will be answered there ... just like now...
I'd put a smiliey face if I could find one right now - but I am not looking for it right now ... im off to get started ... again thanx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all...
Problem: when I attempt to complie and run my "Hello World" code, I get an error stating "Source File Not Complied".
When I checked the Complie Log the following was displayed:
Complier: Default Complier
Executing gcc.exe...
gcc.exe "E:\c_programming\test.c" -o "E:\c_programming\test.exe" -|"E:\c_programming\Dev-Cpp\include" -L "E:\c_programming\Dev-Cpp\lib"
gcc.exe: installation problem, cannot exec 'cc1': No such file or directory
Execution terminated
Compilation successful
Trouble Shooting Attempts:
1) Since I followed an example from You Tube, I double checked the syntax and it is exactly the same
2)I know I installed the program correctly because I ran a C++ (.cpp) test (example) and no problems
3) Since the C++ example worked, I made sure the source code I was using was .c and not .cpp
4)I read through the forum to see if I could glen any answers and saw where maybe I should not contain my source file int he same directory as the Dev-C++ so I moved the file - still nothing.
Directory Setup:
Application/IDE code
E:\c_programming\Dev-Cpp
Sorry ... hit tab one to many times ...
Issue cont'd
the file is located at:
E:\c_programming\test.c
the program syntax is:
include <stdio.h>
int main(void)
{
printf("Hello World\n");
getch();//acts as a pauser
}
Okay ... follow up three .. sorry .. i found the Please Read Link ... I am glad I was not too far off ... cannot fixt the title of the post now, but I will not make that mistake again...
Here are other pertinent information needed:
(2)I think I answered this above. The IDE is located at E:\c_programming\Dev-Cpp
My project files are not located at
E:\c_programming_projects
(4)As far as I know I downloaded the full version - first option on the download listing
I hope I have everything now...
I am trying to get ready to take my c programming course and wanted to get a head start since it will be on online course.
Thank you in advance for any and all assistance.
Ms. Needy Newbie
"I am running Windows Vista"
Did you follow the directions for setting up under Vista?
They can be found in the "Please Read" thread.
Wayne
This error:
gcc.exe: installation problem, cannot exec 'cc1': No such file or directory
Looks an awful lot like the issue that arises from not making the mods needed for Vista
Thank you both Wayne and Clifford.
Wayne -> I thought the installation was fine because the .cpp code worked.
Clifford -> thank you. The getch() or now getchar() was meant to make the screen stay open so I can see if the code worked
Again, thank you both ... I have marked the "Please Read First link" to my favorites - I imagine most of my questions will be answered there ... just like now...
I'd put a smiliey face if I could find one right now - but I am not looking for it right now ... im off to get started ... again thanx
> getch();//acts as a pauser
getch() is not a function declared in <stdio.h> so once you have fixed your installation problem, the code will not compile.
getchar() perhaps, or include <conio.h> (not recommended).
The issue of preventing premature program termination is also dealt with in the read first thread.
> Since I followed an example from You Tube,
Your choice of reference material is astonishing! If it's on YouTube it must be true right!? ;-)
Clifford
Clifford, you tube is just a starter... my actual college course begins Monday - for the second time.
I am just looking for more examples to help me out - more visual since the college course is online - more of a self-taught/teach approach.
I am also looking at vtc.com ...
But you are right ... you tube videos are NEVER wrong (I say with a smirk) ..
Thank Clifford .. you are an angel
Are you studying C or C++ (or perhaps something else altogether)?