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 3795280
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:03:35+00:00 2026-05-19T13:03:35+00:00

I have read a few articles in the cross-platform tag. However, as I’m starting

  • 0

I have read a few articles in the cross-platform tag. However, as I’m starting a fresh application (mostly a terminal/console app), I’m wondering about the easiest way to make it cross-platform (i.e. working for Linux, Mac OS X, and Windows). I have thought about the following:

  • adding various macro/tags in my code to build different binary executables for each operating system
  • use Qt platform to develop a cross-functional app (although the GUI and platform component would add more development time as I’m not familiar with Qt)

Your thoughts? Thanks in advance for your contribution!

Edit: Sounds like there are a lot of popular responses on Java and Qt. What are the tradeoffs between these two while we’re at it?

  • 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-05-19T13:03:36+00:00Added an answer on May 19, 2026 at 1:03 pm

    Do not go the first way. You’ll encounter a lot of problems that are already solved for you by numerous tools.

    Qt is an excellent choice if you definitely want C++. In fact, it will speed up development even if you aren’t familiar with it, as it has excellent documentation and is easy to use. The good part about it is that it isn’t just a GUI framework, but also networking, XML, I/O and lots of other stuff you’ll probably need.

    If not necessary C++, I’d go with Java. C++ is far too low level language for most applications. Debugging memory management and corrupt stacks can be a nightmare.

    To your edited question:

    • The obvious one: Java has garbage collection, C++ doesn’t. It means no memory leaks in Java (unless you count possible bugs in JVM), no need to worry about dangling pointers and such.
    • Another obvious one: it is extremely easy to use platform-dependent code in C++ using #ifdefs. In Java it is a real pain. There is JNI but it isn’t easy to use at all.
    • Java has very extensive support of exceptions. While C++ has exceptions too, Qt doesn’t use them, and some things that generate exceptions in Java will leave you with corrupt memory and crashes in C++ (think buffer overflows).
    • "Write once, run everywhere." Recompiling C++ program for many platforms can be daunting. Java programs don’t need to be recompiled.
    • It is open to debate, but I think Java has more extensive and well-defined library. The abstraction level is generally higher, the interfaces are cleaner. And it supports more useful things, like XML schemas and such. I can’t think of a feature that is present in Qt, but absent in Java. Maybe multimedia or something, I’m not sure.
    • Both languages are very fast nowadays, so performance is usually not an issue, but Java can be a real memory hog. Not extremely important on modern hardware too, but still.
    • The least obvious one: C++ can be more portable than Java. One example is FreeBSD OS which had very poor support for Java some time ago (don’t know if it is still the case). C++/Qt works perfectly there. If you plan on supporting a wide range of Unix systems, C++ may be a better choice.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read a few articles about this, however, none of them tell me
I have read few articles about table partioning but still I am bit confused
I'm working on the exception handling layer for my application. I have read few
I have read a few articles, I can't see why one would use html5
I have read a few articles on Internet about programming language choice in the
I have asked a few questions on here and read a few articles around
In the past few years I have read plenty of articles on Foreign Keys
I have read a few articles detailing how to use JSONP with MVC4 (i
I have read few good articles about NHibernate localization but nothing seems to fit
I have read a few articles that BlueStacks App Player can be used to

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.