Android build "__pure2" redefined -


i installed latest version of android ndk (r11b) on new machine. when compile c++ code, error "__pure2" has been redefined. appears include file math.h includes sys/cdefs.h. both of them unconditionally define macro called "__pure2" , both of them define differently.

the same code works fine on older machine. upon investigation, appears on machine $ndk\platforms\android-9\arch-arm\usr\include\sys\cdefs.h not have definition of "__pure2." looks introduced recently. wondering if else has seen problem.

for now, have commented macro definition in sys/cdefs.h. there better way fix this? regards.

there's bug ticket tracking issue, actually. might want follow further updates, looks fixed in ndk r12. opt using #ifndef work around mentioned in ticket comments.

#ifndef __pure2   #define __pure // whatever original definition #endif 

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -