You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./configure fails with error checking for library containing clock_gettime... no configure: error: librt not found
while attempting to compile c++ code with gcc compiler: configure:6260: gcc -o conftest -g -O2 conftest.c >&5 conftest.c:35:1: error: unknown type name 'namespace' 35 | namespace conftest { | ^~~~~~~~~ conftest.c:35:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 35 | namespace conftest { | ^ conftest.c: In function 'main': conftest.c:41:8: error: 'conftest' undeclared (first use in this function) 41 | return conftest::clock_gettime (); | ^~~~~~~~ conftest.c:41:8: note: each undeclared identifier is reported only once for each function it appears in conftest.c:41:16: error: expected ';' before '::' token 41 | return conftest::clock_gettime (); | ^~ | ;
./configure CC=g++ may be used as workaround.
The text was updated successfully, but these errors were encountered:
configure:3755: checking for g++
configure:3776: found /usr/bin/g++
configure:3787: result: g++
configure:3814: checking for C++ compiler version
configure:3823: g++ --version >&5
g++ (GCC) 11.1.0
./configure fails with error
checking for library containing clock_gettime... no
configure: error: librt not found
while attempting to compile c++ code with gcc compiler:
configure:6260: gcc -o conftest -g -O2 conftest.c >&5
conftest.c:35:1: error: unknown type name 'namespace'
35 | namespace conftest {
| ^~~~~~~~~
conftest.c:35:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
35 | namespace conftest {
| ^
conftest.c: In function 'main':
conftest.c:41:8: error: 'conftest' undeclared (first use in this function)
41 | return conftest::clock_gettime ();
| ^~~~~~~~
conftest.c:41:8: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:41:16: error: expected ';' before '::' token
41 | return conftest::clock_gettime ();
| ^~
| ;
./configure CC=g++ may be used as workaround.
The text was updated successfully, but these errors were encountered: