ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone,
I am a complete Linux newbie who is hoping to continue programming with the Linux system.
I've had Linux Mandrake for about a week and here is my question.
I want to program with C++ and Java. So what can I use that's already included in Linux? Without downloading further apps.
I mean I know about the basic text editors, but how can I compile/test? What is the GCC used for etc? What are some of your efficient programming setups?
Any help you could give me in this area would be greatly appreciated. I'm still making the jump from Windows, so forgive me if this is asking a lot.
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
Compilation is usually done with the GNU C Compiler which handles, C, C++, fotran77 and some others me thinks. Not all distros include it in the n00b installation because they don't think that new linux people will want to compile programs (unless you chose 'Developer' workstation during installation). The c/c++ libraries will be installed and you can easily install the GNU Debugger (gdb).
The real thing to note here is the variety that accompanies linux for the programmer. There are tons of text editors, a fair number of compilers and debuggers.
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
emacs as editor 10x more powerfull then any other ide.
gcc gor compiling c/c++ applications
gdb for debugging all these application are included in all dist.
emacs as editor 10x more powerfull then any other ide.
I'd have to say that there is nothing really, that can be eclipse. I've used a lot of editors/IDE's and it's by far the best thing since fire was invented.
If you want to code C++, get the CDT plugin. I'm not sure if eclipse comes with your distribution, but if you are serious about coding Java (and C++) I'd take the time to get it.
As far as IDE's go my thouhgt is this:
simple is better.
I can't stand the all in wonder ide's. They all try to be like MS visual studio . They are all Big, slow and difficult to learn. Worst of all they try to do the thinking for you. Emacs is like learning another language. Who has the time to learn all those obscure key strokes? I use "vim" right from the shell because it is light, fast and syntax highlight's everything. Here is my setup of choise:
shell: bash
text editor: vim
compiler: gcc
debugger: gdb
built tool: make
The best part is I can work from one window. vim lets me edit multiple files and spawn shells as I need then, that way I don't have to close the files I am editing to make or debug my work.
Try JEdit. It's simple and powerful. It's power actually comes from the plugins. Its a lot of plugins have been developed and still being developed so its power has no limit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.