home Forums # Technical Support Compilation Failure in CentOS 6

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1468
    Unknown
    Member

    Hi there
    I am running on a 4-core 32-bit DELL server under CentOS 6 and I tried to
    build from source but it didn’t work. Specifically, it erports the below errors:

    bin/libfuzzylite-static.a(Console.cpp.o): In function `fl::Console::benchmarkExamples(int)’:
    Console.cpp:(.text+0x580f): undefined reference to `clock_gettime’
    Console.cpp:(.text+0x584b): undefined reference to `clock_gettime’
    collect2: ld returned 1 exit status
    make[2]: *** [bin/fuzzylite] Error 1
    make[1]: *** [CMakeFiles/fl-bin.dir/all] Error 2
    make: *** [all] Error 2

    #1469

    Hi,

    please check the following link: http://stackoverflow.com/questions/2418157/ubuntu-linux-c-error-undefined-reference-to-clock-gettime-and-clock-settim

    you have to make sure you add the -lrt to the linker. This function, however, is not necessary. If anything, you could just remove the contents of the function. I will make sure I build fuzzylite in additional Linux platforms for the next version.

    Cheers.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.