First, I have to say that I am totally new to this so please have patience with me when I ask what might seem like stupid questions. I downloaded MinGW and followed the turtorial on how to change the path. When I typed in gcc I got the following error message:
falta error: no input files
I saw where someone else was having the same problem and the following solution was suggested:
save you programm in .c file, go to that directory(where you saved file) from console (use "cd" command) and call gcc with your file as a parameter
I'm not sure exactly what this means...can someone explain this in terms that's easier for a beginner to understand?
The error occured because you didn't input any files to compile. It's nothing big. The compiler works, it's just you didn't specify a .c file to convert to a .exe.
To compile a program (assuming you have a Windows computer):
1. Write a program in C and save it as "example.c"
2. Save it anywhere you please. To test the compiler, I recommend the desktop.
3. In Command Prompt, type in "cd <INSERT DIRECTORY HERE>" (i.e. cd desktop)
4. You will then be inside that directory.
5. Then, type "gcc example.c -o example.exe"
6. If no errors occured, nothing should happen and you should be pushed onto a new line.
7. To see if it compiled correctly, type in the filename.exe (i.e. example.exe)
8. If it compiled right, it should run.
Hope that helped. (:
Take a look at this thread:
Welcome to the WiBit.net forums! Check out our terms and features:
Annoy your friends
Is this something you think someone else would enjoy? Is it not for you, but do you know someone who is down with this type of content? Well share away:
This blog is a reminder that cheating in software development can get you into big trouble. Sometimes developers get really really lazy, OR are pressured to write something using overly simplified data structures. Almost every time this happens you are bitten in the butt! Sometimes the problems show up immediately and other times it may take months or years (especially in integrated systems).
- 1 of 78