-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
solution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)the issue will not be fixed (either it is impossible or deemed out of scope)
Description
With single header file json.hpp
Source Code:
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include "json.hpp"
using namespace std;
using json = nlohmann::json;
int main()
{
json j;
j["pi"] = 3.141;
j["hello"] = "world";
std::cout << j << std::endl;
return 0;
}
Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := test
LOCAL_C_INCLUDES := $(NDK_MODULE_PATH)/include
LOCAL_SRC_FILES := test.cpp
include $(BUILD_EXECUTABLE)
Application.mk:
APP_ABI := armeabi-v7a
APP_PLATFORM := android-21
APP_STL := c++_static
APP_CPPFLAGS += -frtti -fexceptions -std=c++11
NDK_TOOLCHAIN_VERSION := clang3.6
Clang output:
[armeabi-v7a] Compile++ thumb: test <= test.cpp
Assertion failed!
Program: D:\Android\android-ndk-r10e\toolchains\llvm-3.6\prebuilt\windows-x86_64\bin\clang++.exe
File: /s/ndk-toolchain/src/llvm-3.6/llvm/lib/IR/Metadata.cpp, Line 158
Expression: !(MD && isa<MDNodeFwdDecl>(MD)) && "Expected non-temp node"
clang++.exe: error: clang frontend command failed with exit code 3 (use -v to see invocation)
clang version 3.6
Target: armv7-none-linux-androideabi
Thread model: posix
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
solution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)the issue will not be fixed (either it is impossible or deemed out of scope)