Like Tree1Likes
  • 1 Post By manasij7479

Andriod and C++, how?

This is a discussion on Andriod and C++, how? within the C++ Programming forums, part of the General Programming Boards category; Hey guys, Im new over here, but i've beens following posts from a long time now. i know a little ...

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Question Andriod and C++, how?

    Hey guys,

    Im new over here, but i've beens following posts from a long time now.
    i know a little java, and some other stuff.

    But right now im putting myself into c++, My real question comes like this: What do i really need to compile c++ for andriod?

    And maybe a little description, if you want to. Like in steps


    Thank you in advance

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    If you want android application development in C++, you'd need to use their NDK.
    If you just want to compile standard C++ code on an android device, you'd need to root it and install gcc.
    adderly likes this.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    12
    what's the difference between using the NDK and rooting the device and installing the gcc?

  4. #4
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    One you're supposed to do, if you're going to make android apps in C++.
    The second is just a hack.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  5. #5
    Registered User
    Join Date
    Oct 2011
    Posts
    12
    Thanks! Just What i needed to know

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,667
    The second will void your warranty. That is, unless you don't break it and unroot it before sending it in to service.
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21