android - Strange const definition with asm -


i trying build ne10 library android, cmake reports:

-- target architecture: armv7

-- building type: release

-- loaded toolchain:

../android/sdk/ndk-bundle//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc  ../android/sdk/ndk-bundle//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++  ../android/sdk/ndk-bundle//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as 

-- cmake_c_flags:

-std=c11 -fno-strict-aliasing -o2 -dndebug --sysroot=/home/gica/android/sdk/ndk-bundle//platforms/android-21/arch-arm/ -pie -mthumb-interwork -mthumb -march=armv7-a -mfloat-abi=hard -mfpu=vfp3 -wl,--no-warn-mismatch

but compiler reports error:

in file included ...ne10/common/ne10_mask_table.c:32:0: ..ne10/common/ne10_mask_table.h:41:65:

error: expected '=', ',', ';', 'asm' or 'attribute' before 'asm'

extern const ne10_uint32_t ne10_qmasktable32[q_mask_table_size] asm ("ne10_qmasktable32");

in header "ne10_mask_table.h" there strange definitions:

#include "ne10_types.h" #ifndef _arm_mask_table_h #define _arm_mask_table_h  #define q_mask_table_size        20 #define d_mask_table_size        6 #define div_lookup_table_size    255  /* mask table dsp module */ extern const ne10_uint32_t ne10_qmasktable32[q_mask_table_size] asm ("ne10_qmasktable32"); extern const ne10_uint32_t ne10_dmasktable32[d_mask_table_size] asm ("ne10_dmasktable32"); 

i confused "expected 'asm' before 'asm'

what missing?

the issue here not have #endif associated #ifndef


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -