Pure C++ Programs

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Pure C++ Programs

Postby JoshK » Fri Aug 20, 2010 5:07 pm

I want to compile a pure C++ program for Android and see it running on my phone:
Code: Select all
#include "Hello World.h"

using namespace codewerks;

//=============================================
// Main Loop
//=============================================
int main(int argc, char* argv[])
{
   Print(std::string("Hello World!"));
}


How do I even start? Is it possible to build this with GCC in a way that doesn't require the whole Android SDK/NDK? Is there a compiler in the SDK/NDK I can take out and use? I don't want to use Java or Eclipse.
JoshK
Freshman
Freshman
 
Posts: 3
Joined: Fri Aug 20, 2010 5:02 pm

Top

Re: Pure C++ Programs

Postby Chrystian » Sat Aug 21, 2010 5:43 am

NDK is the only way.
--
Chrystian Vieyra
Chrystian
Junior Developer
Junior Developer
 
Posts: 18
Joined: Mon Jul 12, 2010 2:58 am

Re: Pure C++ Programs

Postby JoshK » Sat Aug 21, 2010 9:33 am

NDK only builds static libs that a Java program still has to include, right?
JoshK
Freshman
Freshman
 
Posts: 3
Joined: Fri Aug 20, 2010 5:02 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 7 guests