Installing CLang, gcc, make | Compiling C Program on iOS | iSH Terminal

Channel:
Subscribers:
1,030
Published on ● Video Link: https://www.youtube.com/watch?v=E1Y8oARwJxQ



Duration: 4:05
369 views
5


Installing CLang, gcc, make | Compiling C Program on iOS | iSH Terminal

#ish #clanguage #gcc

*Installing vim Editor*

If you don’t have vim editor, install it by using the below command in iSH:

apk add vim \
highlight \
highlight-doc

****************************************
****************************************

*Installing clang, make, gcc compiler*

Now, it’s time to install the clang and gcc compiler. We will use the command below:

apk add build-base \
clang \
clang-doc \
nasm \
nasm-doc

This will install nasm, clang, gcc and make.

****************************************
****************************************

*Testing C program*

In order to test that the above libraries are properly installed in iSH terminal, we can then go ahead to test a small c program.

Let’s start by creating a file called hello.c:

touch hello.c

Next step is to edit this file using vim editor.

vim hello.c

Now, enter into edit mode by pressing *i* and paste the below code:

#include stdio.h
int main() {
puts("Hello World!");
return 0;
}

Press escape and :wq to write changes to file and quit from edit mode.

****************************************
****************************************

*Compiling & Running the C program*

Finally let’s compile this C program using the make command as below:

make hello

Now test and run the compiled file directly from the terminal using below command:

./hello

You should see the output “Hello World” in iSH terminal.

****************************************
****************************************

*Credits*
* Apple: Video made with Final Cut Pro, macOS
* Music: Rhodesia by Twin Musicom is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0
* Artist: http://www.twinmusicom.org/

****************************************
****************************************

*NOTE*
Installation of gcc & Clang takes bit time so kindly keep patience and let the installation finish.

That’s all for this video.

#ish
#terminal
#apple
#iphone
#clanguage
#cprogramming
#gcc
#g++
#imchampagnepapi

Thanks for checking out this video. Hope this helps 🙏




Other Videos By Champ’s Hub


2023-11-13[8d Sound] Watch Out - Sidhu MooseWala (R.I.P) 🙏🎧
2023-11-05[8d Sound] Hass Hass - Diljit X Sia 🥰🎧
2023-11-02Building Cayman - Jekyll GitHub Pages Theme using iSH | iOS Terminal 👍
2023-10-22Change Prompt String PS1 in iSH Terminal
2023-10-15Install Flutter & Dart Plugins in Android Studio #flutter #imchampagnepapi #coding
2023-10-12Still Rolling [8D Sound] | Punjabi Song by Shubh | Use Headphones 🎧✌🏻
2023-10-08Install Numpy on iSH Terminal using Python3.9 | Numpy on iOS
2023-10-01Resolved! Xcode15 DT_TOOLCHAIN_DIR Error | Xcode15 build error 🫣
2023-09-25Create & Run NodeJS Web App on iOS | iSH Terminal
2023-09-24Creating & Running NodeJS WebApp on iOS (using iSH Terminal) | NodeJs on iOS
2023-09-15Installing CLang, gcc, make | Compiling C Program on iOS | iSH Terminal
2023-09-08Install vim on iSH Shell | iSH vim editor for code highlights | iSH Terminal✌🏻🙏
2023-09-07Flutter - Firebase Dynamic Link (Android & iOS) | DeepLink Setup Tutorial ✌🏻
2023-08-20Install Numpy on iSH Shell | Numpy with Python3.8 on iOS | iSH Terminal🥳✌🏻
2023-07-30[iSH] Upgrade Alpine Linux & Python3 in iSH Terminal | Python3 on iOS
2023-07-22Cheques: Shubh [8D Audio] | Punjabi Song 2023
2023-06-18Creating & Publishing an Android Library (.aar) to Maven Jitpack Repo | Android Studio
2023-06-16Safari Browser Updates | Transform any of your favorite website into WebApp with macOS Sonoma Safari
2023-06-12🍎iOS iMessage App Text Effects | iPhone Text Magic😸😵‍💫👏 #ios #imessage #apple #iostricks #wwdc
2023-06-11Amazon AWS Elastic Transcoder API | Media Transcoder #aws #transcodes #amazon #mac
2023-06-05Death Stranding Director’s Cut 4 Mac | WWDC23 #wwdc23 #deathstranding #appstore #mac #apple



Tags:
Clang
Gcc
ISH
ISH terminal
ISH gcc
C program in iSH
C program in iSH terminal
iPhone c program
iPhone C compiler
iPhone c compile
C compiler In ios
iOS c compiler
C language
C language compile
Compile c program on ios
Compiler Gcc on IPhone
Compiler Gcc on Ios
Programming on iPhone 13pro
iPhone 13Pro iSH terminal
Code on ios
C program gcc compiler turbo c
YouTube shorts
Shorts
alpine
c++
c+
c lang
ios 17
iphone13
iphone15