Why hello wold program is not running in termux | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why hello wold program is not running in termux

Hello world programme is not running in termux Android

7th Oct 2020, 5:02 AM
Nil Chouhan
Nil  Chouhan - avatar
15 Answers
+ 2
I don't know much more about that you can follow these steps which i mentioned in Answer . but if u facing error type name on Google u can find easily or you can download any other ide if u want to execute your c ,cpp code . Download cxxdroid best for c /cpp in android
7th Oct 2020, 5:45 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Try this may be will able to run your code easily follow these steps To Install and Use C/C++ compiler in Termux (in Termux clang is the C/C++ compiler) , Download & Install Termux from : Play Store. After Installing execute this command pkg install clang. After Successfully installing clang you can compile C/C++ scripts Open Termux app and type commands $ pkg install clang OR $ pkg install g++ $ pkg install nano To write your c++ program type $ nano filename.cpp
7th Oct 2020, 5:22 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Show your code what u typed
7th Oct 2020, 5:15 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
I think you cannot run c or Cpp code in termux directly u need to install packages. Try same code in python may be it will run type this print("hello") Or Add two numbers
7th Oct 2020, 5:18 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Ok thanks we'll what's ur name bro
7th Oct 2020, 5:19 AM
Nil Chouhan
Nil  Chouhan - avatar
+ 2
Discussion box is only for ask Programming related doubts so dont ask unnecessary questions.
7th Oct 2020, 5:22 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
7th Oct 2020, 5:24 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
How you writting and what errors it showing.?
7th Oct 2020, 5:12 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Ok
7th Oct 2020, 5:22 AM
Nil Chouhan
Nil  Chouhan - avatar
+ 1
Tnx for help
7th Oct 2020, 5:23 AM
Nil Chouhan
Nil  Chouhan - avatar
0
I have just paste and copied the program from here
7th Oct 2020, 5:14 AM
Nil Chouhan
Nil  Chouhan - avatar
0
#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
7th Oct 2020, 5:16 AM
Nil Chouhan
Nil  Chouhan - avatar
0
How can I send u screenshot yrr there is problem now also
7th Oct 2020, 5:42 AM
Nil Chouhan
Nil  Chouhan - avatar
0
Ok sister tnx
7th Oct 2020, 5:48 AM
Nil Chouhan
Nil  Chouhan - avatar
0
Try these commands 1. g++ filename.cpp -o filename.exe 2../filename.exe
7th Oct 2020, 1:02 PM
Abhishek God
Abhishek God - avatar