Компилирую под Linux (ubuntu)
main.cpp
Код: Выделить всё
#include <stdio.h>
#include <math.h>
#include <vector>
#include <iostream>
int main ()
{
int A = 0;
int B = 9;
std::vector <int> C;
static std::wostream Str;
A = sqrt(9.0);
for (int i = 0; i<10; i++) {
C.push_back(i);
}
Str << "Текст\n";
return 0;
}
Код: Выделить всё
APP_ABI := armeabi-v7a
APP_STL := stlport_static
STLPORT_FORCE_REBUILD := true
LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
Код: Выделить всё
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := main
LOCAL_SRC_FILES := main.cpp
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)