I got a comp. With linux n ubuntu bt i dont how to use c in that | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I got a comp. With linux n ubuntu bt i dont how to use c in that

9th Aug 2017, 11:54 AM
Saurav Bhartia
Saurav Bhartia - avatar
3 Answers
+ 1
Open a terminal and enter "sudo apt-get build-essential". This will install many packages necessary for building programs in C & C++. Additionally, I strongly recommend installing manpages-dev and manpages-posix. There are a ton of utilities, editors, IDEs, and more for development. Once you have a compiler installed, however, all you really need is to create a source file and compile it. Basic compilation command is "cc" or "gcc" for C and "c++" or "g++" for C++. Code::Blocks is a pretty excellent and beginner-friendly IDE but try not to become too dependent on an IDE if you can avoid it.
10th Aug 2017, 1:01 AM
Gerald O'Steen
0
thanks
9th Aug 2017, 12:14 PM
Saurav Bhartia
Saurav Bhartia - avatar
0
too good
10th Aug 2017, 2:28 AM
Saurav Bhartia
Saurav Bhartia - avatar