dear all i have gcc on my centos. I need to make an executable file from my c code. Can you please let me know what stuff and company do i need on my centos? Is there any gui like c++/visual c avalable for centos? Thank you
On Mon, 2010-05-03 at 08:14 +0100, hadi motamedi wrote:
dear all i have gcc on my centos. I need to make an executable file from my c code. Can you please let me know what stuff and company do i need on my centos?
If you have basic c source code on your computer, and you have gcc installed, you can compile it with this command:
gcc nameofsourcefile.c
That will give you an executable file called a.out in the same directory as the source code.
If the source code requires a library (ncurses, gtk, etc) then you will need to specify that on the commandline, too.
Is there any gui like c++/visual c avalable for centos?
Are you trying to ask for a recommendation for a programmers editor? If so, the best editor depends on the type of programming that you do. There are numerous editors available on Centos, and many of them have C templates. The simplest are probably gedit and vim, both of which will automatically colourize C source code if the source file ends with .c. Fancier editors like Geany, Anjuta and Eclipse are all highly recommended by various people. I personally use Geany but again, the best editor depends on your personal taste and expectations, and the type of programming that you do.
Are you trying to ask for a recommendation for a programmers editor?
Thank you for your reply. Actually, I do not just need an C code editor but I am seeking if a complete software package like c++/visual c on Windows does exist for CentOS that enables for editing, debugging, running, online help for all of the commands, etc. Can you please let me know if such a complete package if available?
On 3 May 2010, at 08:38, hadi motamedi motamedi24@gmail.com wrote:
Can you please let me know if such a complete package if available?
Lots - do some basic research to find one that meets your needs, for example http://www.google.co.uk/search?q=Linux+c%2B%2B+IDE
Ben
Can you please let me know if such a complete package if available?
Lots - do some basic research to find one that meets your needs, for example http://www.google.co.uk/search?q=Linux+c%2B%2B+IDE
Yes there are a lot and it takes time to install and test them all...
I personnally settled for Eclipse CDT which integrates with the GNU toolchain without hiding it. That's also because I also use Eclipse as a Java IDE (much more than I do C/C++ dev).
Download a recent version of Eclipse CDT.
Can you please let me know if such a complete package if available?
Lots - do some basic research to find one that meets your needs, for example http://www.google.co.uk/search?q=Linux+c%2B%2B+IDE
Yes there are a lot and it takes time to install and test them all...
I personnally settled for Eclipse CDT which integrates with the GNU toolchain without hiding it. That's also because I also use Eclipse as a Java IDE (much more than I do C/C++ dev).
Download a recent version of Eclipse CDT.
At Mon, 3 May 2010 08:38:26 +0100 CentOS mailing list centos@centos.org wrote:
Are you trying to ask for a recommendation for a programmers editor?
Thank you for your reply. Actually, I do not just need an C code editor but I am seeking if a complete software package like c++/visual c on Windows does exist for CentOS that enables for editing, debugging, running, online help for all of the commands, etc. Can you please let me know if such a complete package if available?
What you are looking for is called an IDE (Integrated Development Environment). I believe that such a thing exists for the UNIX/Linux world, but I have had no experience with such tools under UNIX (few UNIX programmers bother with something like that).
MIME-Version: 1.0
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Robert Heller wrote:
At Mon, 3 May 2010 08:38:26 +0100 CentOS mailing list centos@centos.org wrote:
Are you trying to ask for a recommendation for a programmers editor?
Thank you for your reply. Actually, I do not just need an C code editor but I am seeking if a complete software package like c++/visual c on Windows does exist for CentOS that enables for editing, debugging, running, online help for all of the commands, etc. Can you please let me know if such a complete package if available?
What you are looking for is called an IDE (Integrated Development Environment). I believe that such a thing exists for the UNIX/Linux world, but I have had no experience with such tools under UNIX (few UNIX programmers bother with something like that).
That's probably not true any more, especially for languages like java that like to put each class in its own file. In fact, if there is any chance that you'll ever program in java, I would just start with eclipse since it will also handle C and some other languages nicely. "yum install eclipse-platform".
Robert Heller wrote:
At Mon, 3 May 2010 08:38:26 +0100 CentOS mailing list centos@centos.org wrote:
Are you trying to ask for a recommendation for a programmers editor?
Thank you for your reply. Actually, I do not just need an C code editor but I am seeking if a complete software package like c++/visual c on Windows does exist for CentOS that enables for editing, debugging, running, online help for all of the commands, etc. Can you please let me know if such a complete package if available?
What you are looking for is called an IDE (Integrated Development Environment). I believe that such a thing exists for the UNIX/Linux world, but I have had no experience with such tools under UNIX (few UNIX programmers bother with something like that).
That's probably not true any more, especially for languages like java that like to put each class in its own file. In fact, if there is any chance that you'llever program in java, I would just start with eclipse since it will also handle C and some other languages nicely. "yum install eclipse-platform".
Assuming your system can handle the what, 1G+ IDE, and do so with reasonable speed....
mark
On 5/3/2010 8:38 AM, m.roth@5-cent.us wrote:
Are you trying to ask for a recommendation for a programmers editor?
Thank you for your reply. Actually, I do not just need an C code editor but I am seeking if a complete software package like c++/visual c on Windows does exist for CentOS that enables for editing, debugging, running, online help for all of the commands, etc. Can you please let me know if such a complete package if available?
What you are looking for is called an IDE (Integrated Development Environment). I believe that such a thing exists for the UNIX/Linux world, but I have had no experience with such tools under UNIX (few UNIX programmers bother with something like that).
That's probably not true any more, especially for languages like java that like to put each class in its own file. In fact, if there is any chance that you'llever program in java, I would just start with eclipse since it will also handle C and some other languages nicely. "yum install eclipse-platform".
Assuming your system can handle the what, 1G+ IDE, and do so with reasonable speed....
Yes, you'd probably want at least a pentium-3 and a reasonable amount of RAM - and with any GUI tool, a decent video card, although with freenx or remote X, that part can be elsewhere.
Assuming your system can handle the what, 1G+ IDE, and do so with reasonable speed....
As we speak, I have under the eyes two Eclipse workspaces with tens of OSGi (Java) projects and hundreds of dependencies.
Workspace 1: 167M of 274M Workspace 2: 99M of 322M (show heap status in Preferences > General)
I have just shown a colleague how to use 'Open Type Hierarchy' (F4) to browse through the inheritance hierarchy of any objects across all classes of the workspace (your own + those of all libraries). When your whole stack is FLOSS software, and you can thus directly open the code of each third party class and continue browsing, I think that an IDE as a real value.
I routinely have around 4 workspaces open on my 4 GB workstation (+plenty of firefoxes, and the test servers and processes, etc.).
Sorry for the (slight) OT, since I'm talking about Java devpt, but I want to share that I am really happy with Eclipse (v3.5.2 x86_64 PDE) on CentOS.
In terms of stability and resource usage it is the best fit I have found so far for Java devpt, contrary to what many would think...
Try kdevelop.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of hadi motamedi Sent: Monday, May 03, 2010 3:15 AM To: centos@centos.org Subject: [CentOS] gcc?
dear all i have gcc on my centos. I need to make an executable file from my c code. Can you please let me know what stuff and company do i need on my centos? Is there any gui like c++/visual c avalable for centos? Thank you _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, May 3, 2010 at 8:26 AM, Massey, Ricky ricky.massey@lmco.com wrote:
Try kdevelop.
Will second this... It comes with project templates for anything from a simple shell "helloworld" to full blown GUI apps.
On 05/03/2010 08:48 AM Kwan Lowe wrote:
On Mon, May 3, 2010 at 8:26 AM, Massey, Ricky ricky.massey@lmco.com wrote:
Try kdevelop.
Will second this... It comes with project templates for anything from a simple shell "helloworld" to full blown GUI apps.
Nobody's mentioned glade2-- or as its listed in the gnome menu, "Glade Interface Designer". It's a drag-and-drop GUI for creating windowed apps. I.e., you select which widgets you want and drop them onto a window, configure them, and then use whatever editor you want to create the back-end code. Glade creates your app's code in variety of different programming languages, C included.
For an editor I use emacs because I can use it for just about anything from creating plain text, shell scripts, html docs, and C code. Emacs isn't just configurable, it's programmable. You can write code to add or change the functionality emacs provides. It's been around since the '60s and isn't likely to go away anytime in the next few decades.
Just more options....
On 05/03/2010 08:48 AM Kwan Lowe wrote:
On Mon, May 3, 2010 at 8:26 AM, Massey, Ricky ricky.massey@lmco.com wrote:
Try kdevelop.
Will second this... It comes with project templates for anything from a simple shell "helloworld" to full blown GUI apps.
Nobody's mentioned glade2-- or as its listed in the gnome menu, "Glade Interface Designer". It's a drag-and-drop GUI for creating windowed apps. I.e., you select which widgets you want and drop them onto a window, configure them, and then use whatever editor you want to create the back-end code. Glade creates your app's code in variety of different programming languages, C included.
Interesting.
For an editor I use emacs because I can use it for just about anything
vi.
from creating plain text, shell scripts, html docs, and C code. Emacs isn't just configurable, it's programmable. You can write code to add or change the functionality emacs provides. It's been around since the '60s and isn't likely to go away anytime in the next few decades.
I could swear it had only been around since the eighties.... At any rate, yes, emacs, the windowing operating system masquerading as a programmers' editor....
mark "we should take this to alt.religion.editors"
Find research and analysis on US healthcare, health insurance, and health policy at: http://healthpolicydaily.blogspot.com/
On 05/03/2010 10:37 AM m.roth@5-cent.us wrote:
.... Nobody's mentioned glade2-- or as its listed in the gnome menu, "Glade Interface Designer". It's a drag-and-drop GUI for creating windowed apps. I.e., you select which widgets you want and drop them onto a window, configure them, and then use whatever editor you want to create the back-end code. Glade creates your app's code in variety of different programming languages, C included.
Interesting.
Yeah, it's so cool, I don't understand why there aren't a bazillion Linux GUI apps for everything. It makes creating GUI apps actually fun!
For an editor I use emacs because I can use it for just about anything
vi.
from creating plain text, shell scripts, html docs, and C code. Emacs isn't just configurable, it's programmable. You can write code to add or change the functionality emacs provides. It's been around since the '60s and isn't likely to go away anytime in the next few decades.
I could swear it had only been around since the eighties.... At any rate, yes, emacs, the windowing operating system masquerading as a programmers' editor....
mark "we should take this to alt.religion.editors"
Yeah, I wish I had a nickel for every time I said "emacs" on a mailing list and someone came back "vi". I'd own a paradise island somewhere. B-)
Just to earn myself another mythical nickel, I'll say: With emacs tramp-mode I can, in a local emacs window, open a file on any other machine in the world to which I have ssh access. This functionality has come in handy countless times when doing work sysadmin stuff from home, website development, and editing files on other machines on my home network. There's barely any load on the remote machine and on the local machine it's just about the same experience as editing a local file.
I should say too that I've been using vi just about every day for more than a couple decades and it's fine for lots of occasions when I just want to make a few small changes or create a small file. But for creating or editing files, jumping around inside of them, complex cutting-and-pasting, in files upwards of a megabyte and/or files containing those idiosyncratic French, Spanish, and German characters and even the entirety of Greek, Pali, Japanese, Sanskrit, Chinese, and Russian alphabets, emacs is what works for me. And for other reasons too.
Different (key) strokes, ken
Ken wrote:
On 05/03/2010 10:37 AM m.roth@5-cent.us wrote:
someone wrote:
.... Nobody's mentioned glade2-- or as its listed in the gnome menu, "Glade
<snip>
Interesting.
Yeah, it's so cool, I don't understand why there aren't a bazillion Linux GUI apps for everything. It makes creating GUI apps actually fun!
For an editor I use emacs because I can use it for just about anything vi.
from creating plain text, shell scripts, html docs, and C code. Emacs isn't just configurable, it's programmable. You can write code to add or change the functionality emacs provides. It's been around since the '60s and isn't likely to go away anytime in the next few decades.
I could swear it had only been around since the eighties.... At any rate, yes, emacs, the windowing operating system masquerading as a programmers' editor....
mark "we should take this to alt.religion.editors"
Yeah, I wish I had a nickel for every time I said "emacs" on a mailing list and someone came back "vi". I'd own a paradise island somewhere. B-)
I'd have had that island a decade or more ago.
Just to earn myself another mythical nickel, I'll say: With emacs tramp-mode I can, in a local emacs window, open a file on any other machine in the world to which I have ssh access. This functionality has
<snip> Of course, the one *I* want is brief. I think $$ome editor$ still advertise brief emulation mode. *How* many keystrokes is it to do column copy in emacs?
mark
m.roth@5-cent.us wrote:
Ken wrote:
On 05/03/2010 10:37 AM m.roth@5-cent.us wrote:
someone wrote:
.... Nobody's mentioned glade2-- or as its listed in the gnome menu, "Glade
<snip> >> Interesting. > Yeah, it's so cool, I don't understand why there aren't a bazillion > Linux GUI apps for everything. It makes creating GUI apps actually fun! > >>> For an editor I use emacs because I can use it for just about anything >>> vi. >>> from creating plain text, shell scripts, html docs, and C code. Emacs >>> isn't just configurable, it's programmable. You can write code to add >>> or change the functionality emacs provides. It's been around since the >>> '60s and isn't likely to go away anytime in the next few decades. >> I could swear it had only been around since the eighties.... At any >> rate, yes, emacs, the windowing operating system masquerading as a >> programmers' editor.... >> >> mark "we should take this to alt.religion.editors" > Yeah, I wish I had a nickel for every time I said "emacs" on a mailing > list and someone came back "vi". I'd own a paradise island somewhere. > B-)
I'd have had that island a decade or more ago.
Just to earn myself another mythical nickel, I'll say: With emacs tramp-mode I can, in a local emacs window, open a file on any other machine in the world to which I have ssh access. This functionality has
<snip> Of course, the one *I* want is brief. I think $$ome editor$ still advertise brief emulation mode. *How* many keystrokes is it to do column copy in emacs?
YES, brief is the best editor I have ever used. There are several features like that I still miss. I actually have a couple of copies of it in the original boxes, but it only runs on xx-DOS or OS/2. I plan to use one of them on some 80386 based PC/104 boards I am getting ready to reactivate. It will fit nicely into the 2MB flash drive with DR-DOS.
Bob McConnell N2SPP
m.roth@5-cent.us wrote:
Ken wrote:
On 05/03/2010 10:37 AM m.roth@5-cent.us wrote:
someone wrote:
.... Nobody's mentioned glade2-- or as its listed in the gnome menu,
<snip> >>> For an editor I use emacs because I can use it for just about >>> anything >>> vi. >>> from creating plain text, shell scripts, html docs, and C code.
<snip>
mark "we should take this to alt.religion.editors"
<snip>
Of course, the one *I* want is brief. I think $$ome editor$ still advertise brief emulation mode. *How* many keystrokes is it to do column copy in emacs?
YES, brief is the best editor I have ever used. There are several features like that I still miss. I actually have a couple of copies of it in the original boxes, but it only runs on xx-DOS or OS/2. I plan to use one of them on some 80386 based PC/104 boards I am getting ready to reactivate. It will fit nicely into the 2MB flash drive with DR-DOS.
I've got the original boxes, too - from somewhere I worked. I keep meaning to see if they'll run under wine or xbox. AND the entire editor fits on two 5.25" floppies....
mark "which would mean I'd have to halt my machine, and install the drive, as I've been meaning to, so I could go through and get rid of the several hundred 5.25" floppies I've been dragging around...."
Bob McConnell wrote:
m.roth@5-cent.us wrote:
Ken wrote:
On 05/03/2010 10:37 AM m.roth@5-cent.us wrote:
someone wrote:
.... Nobody's mentioned glade2-- or as its listed in the gnome menu, "Glade
<snip>
Interesting.
Yeah, it's so cool, I don't understand why there aren't a bazillion Linux GUI apps for everything. It makes creating GUI apps actually fun!
For an editor I use emacs because I can use it for just about anything vi. from creating plain text, shell scripts, html docs, and C code. Emacs isn't just configurable, it's programmable. You can write code to add or change the functionality emacs provides. It's been around since the '60s and isn't likely to go away anytime in the next few decades.
I could swear it had only been around since the eighties.... At any rate, yes, emacs, the windowing operating system masquerading as a programmers' editor....
mark "we should take this to alt.religion.editors"
Yeah, I wish I had a nickel for every time I said "emacs" on a mailing list and someone came back "vi". I'd own a paradise island somewhere. B-)
I'd have had that island a decade or more ago.
Just to earn myself another mythical nickel, I'll say: With emacs tramp-mode I can, in a local emacs window, open a file on any other machine in the world to which I have ssh access. This functionality has
<snip> Of course, the one *I* want is brief. I think $$ome editor$ still advertise brief emulation mode. *How* many keystrokes is it to do column copy in emacs?
YES, brief is the best editor I have ever used. There are several features like that I still miss. I actually have a couple of copies of it in the original boxes, but it only runs on xx-DOS or OS/2. I plan to use one of them on some 80386 based PC/104 boards I am getting ready to reactivate. It will fit nicely into the 2MB flash drive with DR-DOS.
Wow, I used to use this back in the day - it was a great editor but never made it into the 21st century as far as I know. Another one is ultraedit - now available for linux in rpm form for RHEL - but it is not free. HTH
Bob McConnell N2SPP _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Looks like brief is still available, as a rewrite for Windows as a console app. Can be run in linux using winconsole instead of wine.
http://www.briefeditor.com/index.htm
OTOH, I prefer ultraedit for linux (and windows) these days.
On 05/03/2010 12:18 PM m.roth@5-cent.us wrote:
Ken wrote:
....
Of course, the one *I* want is brief. I think $$ome editor$ still advertise brief emulation mode. *How* many keystrokes is it to do column copy in emacs?
It's a *programmable* editor... so you could do it with one keystroke if that's what you wanted.
On Mon, May 3, 2010 at 12:14 AM, hadi motamedi motamedi24@gmail.com wrote:
dear all i have gcc on my centos. I need to make an executable file from my c code. Can you please let me know what stuff and company do i need on my centos? Is there any gui like c++/visual c avalable for centos?
+1 for Eclipse/CDT/PyDev for C++/Python