Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8743383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:39:59+00:00 2026-06-13T11:39:59+00:00

How can I compile a C++ program with a command-line interface and use it

  • 0

How can I compile a C++ program with a command-line interface and use it under Android 2.3.5 on my phone?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:40:00+00:00Added an answer on June 13, 2026 at 11:40 am

    No – the model is completely different. Simple C++ programs are single threaded – they do whatever they have to do as quickly as they can in a single thread of execution and if they have to wait or block on something like retrieving data from the network then they just have to wait. They are given timeslices by a multitasking operating system and when they’re finished they’re finished.

    In Android there is always one thread running which handles GUI interactions and passes the results into ‘hooks’ in your Activity instance. Anything that might block the GUI thread has to be farmed out to another thread, and call back on another method in your Activity. It’s event-driven, and you have remarkably little control or certainty about things like object lifetime. So you need to program in a completely different way.

    An emulator of some kind running as an Android app could – in principle – run C++ binaries compiled for a specific VM. But as far as I’m aware such an app doesn’t exist and neither does the toolchain to produce such binaries. Google have discouraged such an approach too AFAIK. There are fully-fledged computer emulators but for obvious reasons they’re mainly old 8-bit nostalgia fests 🙂

    I’m a C++ programmer who recently got involved in Android programming and I’d recommend it. You’ll think about programs in a different way from the single-threaded IFTT way you may be used to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't compile my Program.java from the command line (only in Eclipse). When I
I have a simple C++ program that I can compile (g++ from command line)
I have a simple C program that I can compile via command line on
How i can develop and compile command line C++ programs in my Linux Ubuntu,
I'm trying to create and compile a simple Objective-C program from the command line.
I am trying to compile and run a program from the command line. When
I got a situation, I can't get a program compile since I splitted the
From command line I am getting file name which I have to compile using
I'm trying to compile a java program that is using JavaDB/Derby. On the command
I'm trying to compile the J2ME java files from command line from 2 week

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.