-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Trying to build with gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0. Yet another build issue.
- Ubuntu 18.04.1 LTS
- gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
- GNU Make 4.1
[ 88%] Building CXX object extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o
/tmp/cdec/extractor/backoff_sampler.cc: In member function ‘virtual extractor::PhraseLocation extractor::BackoffSampler::Sample(const extractor::PhraseLocation&, const std::unordered_set<int>&) const’:
/tmp/cdec/extractor/backoff_sampler.cc:24:18: error: ‘round’ was not declared in this scope
int sample = round(i);
^~~~~
/tmp/cdec/extractor/backoff_sampler.cc:24:18: note: suggested alternative: ‘rand’
int sample = round(i);
^~~~~
rand
extractor/CMakeFiles/extractor.dir/build.make:86: recipe for target 'extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o' failed
make[2]: *** [extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o] Error 1
CMakeFiles/Makefile2:3227: recipe for target 'extractor/CMakeFiles/extractor.dir/all' failed
make[1]: *** [extractor/CMakeFiles/extractor.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
Metadata
Metadata
Assignees
Labels
No labels