Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
icnad512 opened this issue Mar 1, 2021 · 2 comments
Open

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

icnad512 opened this issue Mar 1, 2021 · 2 comments

Comments

@icnad512
Copy link

icnad512 commented Mar 1, 2021

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

@Tobias-Fischer
Copy link

+1 - any hints on that?

@Marcin-st
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants