Thread: Is C++ used for mobile development?

  1. #1
    Registered User
    Join Date
    Sep 2016
    Posts
    9

    Is C++ used for mobile development?

    I wonder if there's any framework that allows C++ coding for cross platoform mobile development with C++?

    I know Xamarin uses C# and was recently acquired by Microsoft but I'm guessing there should be other tools out there do do this, right?

  2. #2
    Tweaking master Aslaville's Avatar
    Join Date
    Sep 2012
    Location
    Rogueport
    Posts
    528
    Quote Originally Posted by ricarod View Post
    I wonder if there's any framework that allows C++ coding for cross platoform mobile development with C++?

    I know Xamarin uses C# and was recently acquired by Microsoft but I'm guessing there should be other tools out there do do this, right?
    What does Xamarin being acquired by Microsoft have to do with it being cross platform ? You might want to look at Qt.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Yes, C++ is used for mobile development. It's typically used as the core code, and on top of that is the UI code and platform-specific code (Java, etc). This is typically done because C++ is portable across platforms (i.e. it can be used on Android, Apple devices and computers of all kind).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by Aslaville View Post
    What does Xamarin being acquired by Microsoft have to do with it being cross platform ? You might want to look at Qt.
    Xamarin is capable of creating mobile apps for Apple/iOS, Android, and Windows. I think it's safe to call that cross-platform. Qt's mobile development is basically limited to those platforms as well.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  5. #5
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    It's kind of disappointing but a lot of mobile apps nowadays are just dedicated and miniature browsers and the real app is just on a website written in HTML + JS.

  6. #6
    Tweaking master Aslaville's Avatar
    Join Date
    Sep 2012
    Location
    Rogueport
    Posts
    528
    Quote Originally Posted by Elkvis View Post
    Xamarin is capable of creating mobile apps for Apple/iOS, Android, and Windows. I think it's safe to call that cross-platform. Qt's mobile development is basically limited to those platforms as well.
    Yeah, you're correct but I think the OP was implying that Xamarin, after being acquired by M$ might at some point, if it has not yet already be limited to certain platforms.

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by MutantJohn View Post
    It's kind of disappointing but a lot of mobile apps nowadays are just dedicated and miniature browsers and the real app is just on a website written in HTML + JS.
    Plenty of people are still writing native apps, and Xamarin is really just a wrapper around the native API of each of its supported platforms. It's not just an embedded browser.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  8. #8
    Registered User
    Join Date
    Sep 2016
    Posts
    9
    Thank you all for your comments, I think what I meant is what Elysia approached as
    Quote Originally Posted by Elysia View Post
    ...It's typically used as the core code, and on top of that is the UI code and platform-specific code....
    Question is where or how you get that "core code" compiled for multi-platform or do you just get your same code and compile it on different IDE's to result on different specific platforms?

  9. #9
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by ricarod View Post
    ...do you just get your same code and compile it on different IDE's to result on different specific platforms?
    That's how you do it usually. Same source. Different compilers.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mobile Games Development
    By iluvmobilegames in forum Game Programming
    Replies: 1
    Last Post: 03-13-2012, 08:09 PM
  2. mobile app
    By time4f5 in forum Tech Board
    Replies: 3
    Last Post: 06-01-2011, 05:13 AM
  3. about Visual Studio mobile development simulator
    By George2 in forum Tech Board
    Replies: 0
    Last Post: 11-09-2006, 03:04 AM
  4. Windows Mobile 5.0 == Windows Mobile 2005?
    By George2 in forum C Programming
    Replies: 4
    Last Post: 08-02-2006, 10:53 PM

Tags for this Thread