Help with Compiling and what's a good application to program with?
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.
Help with Compiling and what's a good application to program with?
Hi I was wondering whats a good program to program with? I am mainling dealing with C++ files, but I am about to learn C.
I currently have nedit, but I am not too sure how to compile files with Linux either. I have only developed applications in Windows, so I am pretty much lost.
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788
Rep:
Quote:
So the way I was doing it (g++ <filename> ) isn't the way to compile C++ files?
It is *one* way, but as you do not tell the compiler the name of the output file, it defaults to a.out which is probably not be what you want.
When your code is growing (multiple source files, dependancies, hierarchies, libraries, ...), you'll find that calling the compiler on the command line start to be a burden, and using a Makefile or an IDE greatly simplify the process.
Quote:
Also, what applications do you guys use when writing code?
I use elvis (a vi clone) and from time to time netbeans, but this is a domain where you have a very large choice (and religious wars too).
Jilliagre is correct.
I think 99% of the time people use make.
(it easier to type 'make test' than 'gcc test.o -o test' :-)
I just use a few standard Makefile templates
which I copy where I need them.
make is worth getting to know though it can be
very (VERY) frustrating to get familiar with it!
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788
Rep:
elvis is also open source, free to download, has syntax coloring, plus: has man-page and html modes (ā la linx) and is more compatible with the standard vi.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.