Skip to content

Instantly share code, notes, and snippets.

View Msadr471's full-sized avatar
😎
I'm ready...

Mamad Msadr471

😎
I'm ready...
View GitHub Profile
@Msadr471
Msadr471 / gist:e13a314526f7ceab99ae24c9549ceeea
Created May 7, 2019 14:14 — forked from VirajKanse/gist:1c0db872cd7685632c02f8826397f190
GCC C/C++ Compiler On Android Using Termux (Linux Environment)
Install Termux App.
type "apt update"
Then We have to install a text editor to write our code so type "apt install vim" for vim text editor
or u can also use nano text editor for nano type "apt install nano"
Now Clang Installation type "apt install clang" and wait for download completes.
now to create a file simply type vim filename.c or .cpp or nano filename.c or cpp
then u will able to write ur code .
write.....to save ur code simply press esc then type ":wq"
now code is ready to compile
type "clang filename.c -o filename"