julius
julius copied to clipboard
Compile error: more undefined references to `static_assert'
Hi, I am facing following errors when I run make -j4. How can I solve this? (Ubuntu 14.04)
gcc -O6 -std=gnu99 -I. -I../libjulius/include -I../libsent/include ../libsent/libsent-config --cflags
../libjulius/libjulius-config --cflags
-o adintool adintool.o options.o mainloop.o -L../libjulius ../libjulius/libjulius-config --libs
-L../libsent ../libsent/libsent-config --libs
../libjulius/libjulius.a(vad_core.o): In function WebRtcVad_CalcVad8khz': vad_core.c:(.text+0xa08): undefined reference to
static_assert'
vad_core.c:(.text+0xa38): undefined reference to static_assert' vad_core.c:(.text+0xf19): undefined reference to
static_assert'
vad_core.c:(.text+0xf41): undefined reference to static_assert' ../libjulius/libjulius.a(vad_filterbank.o): In function
LogOfEnergy':
vad_filterbank.c:(.text+0x4d): undefined reference to static_assert' ../libjulius/libjulius.a(get_scaling_square.o):get_scaling_square.c:(.text+0x20): more undefined references to
static_assert' follow
collect2: error: ld returned 1 exit status
make[1]: *** [julius] Error 1
+1 - any hints on that?
Workarround:
in assert.h file (my location: /usr/include) comment out 3 lines to look like this:
//#if defined --USE_ISOC11 && !defined __cplusplus //#undef static_assert #define static_assert _Static_assert //#endif