Results 1 to 5 of 5
Alright so let me tell you what i want to do.i'm running fedora core 13 i installed gcc (yum install gcc) in terminal. I'm starting out in C++ to write ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-30-2010 #1Linux Newbie
- Join Date
- May 2009
- Location
- Kitchener, Ontario, Canada
- Posts
- 191
Compileing programs i wrote?!?
Alright so let me tell you what i want to do.i'm running fedora core 13 i installed gcc (yum install gcc) in terminal. I'm starting out in C++ to write some basic code now what im looking for is a decent editor to get started with. Also after a write my code how do i compile?
lets say i want to compile this code
Code:#include <stdio.h> main() { printf("Linuxforums.org\n"); }Last edited by donaldfarkas; 08-30-2010 at 09:16 PM.
- 08-30-2010 #2
OK, assuming you name your file hello.c
you can compile the easy way
If everything is installed properly you can just use the makeCode:rcgreen@blue:~$ make hello cc hello.c -o hello rcgreen@blue:~$ ./hello Linuxquestions.org rcgreen@blue:~$
command. It invokes the compiler with the actual command
cc hello.c -o hello
Your program is ready to execute.
- 08-31-2010 #3Just Joined!
- Join Date
- Dec 2009
- Location
- Maryland, USA
- Posts
- 82
You asked for a decent programming editor. In some places, that simple question will start a lengthy debate that'll go on for weeks without end or a useful answer. You can find some of the debates by Googling.
Some believe simple is best and doing everything from the command line builds character and better programmers. Those in that camp will recommend Emacs, Vi, Vim, GEdit, Kate, and other command-line editors.
Then there are those who think programming with tools from the 90s (80s?) is like hunting tigers with spears. Those might recommend GUI integrated development environments like Geany, KDevelop, Eclipse, NetBeans, etc.
Decide for yourself which tools are best for your learning goals. Check back here occasionally to see how the debate is going.
- 08-31-2010 #4Linux Newbie
- Join Date
- May 2009
- Location
- Kitchener, Ontario, Canada
- Posts
- 191
- 08-31-2010 #5
If you are just starting out with a language, keep the editor simple so you focus on the language not the environment.
Full IDE's with hints and autocomplete and things are great but they hinder learning the language; they are much more useful when you know what you are doing and are working on a bigger project or five! Just my opinion.If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
Snakey Wakey!
The Fifth Continent reborn


Reply With Quote

