Skip to content

How to compile? #1

@matteodellamico

Description

@matteodellamico

Hi, I read your papers and I found them really interesting. I'm eager to play with them, but I'm not a C++ developer and I'm not sure how I should compile this.

So, on my Ubuntu box, I installed cmake, libboost-dev, libboost-program-options-dev, libboost-system-dev and libboost-filesystem-dev. At this point cmake doesn't complain anymore. From the source directory I run "cmake .", and then "make", but I get the following error and the build halts:

[ 10%] Building CXX object CMakeFiles/lzjd.static.dir/LZJD.cpp.o
/home/della/pkg/LZJD/src/LZJD.cpp: In function ‘int32_t similarity(const std::vector<int>&, const std::vector<int>&)’:
/home/della/pkg/LZJD/src/LZJD.cpp:132:19: error: ‘round’ was not declared in this scope
     return (int) (round(100*sim));
                   ^~~~~
/home/della/pkg/LZJD/src/LZJD.cpp:132:19: note: suggested alternative: ‘rand’
     return (int) (round(100*sim));
                   ^~~~~
                   rand

Can you help me with understanding how to get a running binary? Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions