Skip to content

Latest master does not build for Android #907

Open
@leetal

Description

@leetal

Android builds does not work (with Clang++) on the current master due to missing definition of abort_if_no_jvm().

https://github.com/Microsoft/cpprestsdk/blob/b9dd8eab814892f110853be1098df1b3f77b2ff0/Release/src/pplx/threadpool.cpp#L41

Problem is due to the fact that abort_if_no_jvm() is declared in an anonymous namespace and has no prior declarations before get_jvm_env() uses it.

Solution is to just move the definition of abort_if_no_jvm() above get_jvm_env().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions