Hi, i am having problems compiling BTest in CentOS
Here is my output.
[root@localhost btest-opensource]# gcc -o btest *.c -lpthread
/tmp/ccL6QCDF.o: In function test_udp_tx': btest.c:(.text+0x1455): undefined reference toclock_gettime'
btest.c:(.text+0x15dc): undefined reference to clock_nanosleep' /tmp/ccL6QCDF.o: In functiontest_udp_rx':
btest.c:(.text+0x16f2): undefined reference to clock_gettime' /tmp/ccL6QCDF.o: In functiontest_udp':
btest.c:(.text+0x1b7f): undefined reference to clock_gettime' btest.c:(.text+0x1bba): undefined reference toclock_gettime'
btest.c:(.text+0x1e92): undefined reference to clock_gettime' /tmp/ccu5j117.o: In functionitimer_start':
timing_mach.c:(.text+0x20e): undefined reference to clock_gettime' /tmp/ccu5j117.o: In functionitimer_step':
timing_mach.c:(.text+0x25f): undefined reference to `clock_nanosleep'
collect2: ld returned 1 exit status
Hi, i am having problems compiling BTest in CentOS Here is my output.
[root@localhost btest-opensource]# gcc -o btest *.c -lpthread /tmp/ccL6QCDF.o: In function
test_udp_tx': btest.c:(.text+0x1455): undefined reference to
clock_gettime' btest.c:(.text+0x15dc): undefined reference toclock_nanosleep' /tmp/ccL6QCDF.o: In function
test_udp_rx': btest.c:(.text+0x16f2): undefined reference toclock_gettime' /tmp/ccL6QCDF.o: In function
test_udp': btest.c:(.text+0x1b7f): undefined reference toclock_gettime' btest.c:(.text+0x1bba): undefined reference to
clock_gettime' btest.c:(.text+0x1e92): undefined reference toclock_gettime' /tmp/ccu5j117.o: In function
itimer_start': timing_mach.c:(.text+0x20e): undefined reference toclock_gettime' /tmp/ccu5j117.o: In function
itimer_step': timing_mach.c:(.text+0x25f): undefined reference to `clock_nanosleep' collect2: ld returned 1 exit statusWhat is wrong?
Thanks