julius-speech / julius

Open-Source Large Vocabulary Continuous Speech Recognition Engine
BSD 3-Clause "New" or "Revised" License
1.84k stars 299 forks source link

Compile error: more undefined references to `static_assert' #159

Open icnad512 opened 3 years ago

icnad512 commented 3 years ago

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 tostatic_assert' vad_core.c:(.text+0xa38): undefined reference to static_assert' vad_core.c:(.text+0xf19): undefined reference tostatic_assert' vad_core.c:(.text+0xf41): undefined reference to static_assert' ../libjulius/libjulius.a(vad_filterbank.o): In functionLogOfEnergy': 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 tostatic_assert' follow collect2: error: ld returned 1 exit status make[1]: *** [julius] Error 1

Tobias-Fischer commented 3 years ago

+1 - any hints on that?

Marcin-st commented 3 years ago

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