You are not logged in.
Pages: 1
I have installed the very basic Arch Linux install (just the terminal) and want to know how to access and compile programs in C using Arch Linux. Thanks in advance.
Offline
Install 'base-devel'.
Use nano or vi or vim or emacs or tea [ the list goes on ] as an editor;
off you go... this may help:
http://aplawrence.com/Linux/c_compiling_linux.html
Deej
Offline
I think when you install the "base" system you have everything you need. Are you familiar with the GNU toolchain (GCC, make, etc.)?
Thanks,
Jamie
archlinux x86_64
Offline
I think when you install the "base" system you have everything you need.
Ah ok, I kinda figured. I just wasn't too sure how to access the compiler.
Are you familiar with the GNU toolchain (GCC, make, etc.)?
I'm not, actually.
Offline
GCC is the GNU C Compiler. The basic idea is:
gcc file.cpp
That will output your binary as a.out. To learn about its other options, type:
man gcc
Offline
I think when you install the "base" system you have everything you need. Are you familiar with the GNU toolchain (GCC, make, etc.)?
Actually like deej said it's in base-devel not base, same as a few other things that are needed. You probably don't have base-devel installed unless you selected.
Offline
Jamie wrote:I think when you install the "base" system you have everything you need. Are you familiar with the GNU toolchain (GCC, make, etc.)?
Actually like deej said it's in base-devel not base, same as a few other things that are needed. You probably don't have base-devel installed unless you selected.
Err, you're right. Base to me = base-devel so I just assume everyone installs base-devel like I do LOL.
Thanks,
Jamie
archlinux x86_64
Offline
I recommend you to try llvm + clang after words
Offline
I recommend you to try llvm + clang after words
I second this. Clang and LLVM are great programming tools(though still in development, they have reached "production" quality in the C area, or so the website says )
17:23 < ConSiGno> yeah baby I release the source code with your mom every night
17:24 < ConSiGno> you could call them nightly builds if you know what I mean
Offline
Just so you know, gcc, make, and other tools aren't available just in Arch Linux, it's available in all Linux distribution. In Arch Linux, base-devel is just the name of the group that contains a bunch of material for editing, but you don't have to use them all. If you're just starting off, you'll most likely only need gcc. Makefile is often used for much larger and complicated projects. So on... I recommend just doing pacman -S gcc for now. Don't bother with the rest until you need them.
Offline
Pages: 1