/extractor/backoff_sampler.cc:24:18: error: ‘round’ was not declared in this scopeHow to compile C++ source code (“iostream.h not found” error)?Error while installing tiff-4.0.3Building TrueCrypt on Ubuntu 14.04Error: ‘strlen’ was not declared in this scopeUbuntu SDK error running scope exampleCould not find wx-config error when building Audacity from sourcemake error cmath ‘::cos’ has not been declaredhow to solve this error? (collect2: fatal error: cannot find 'ld')

Is it safe to drink the water from the fountains found all over the older parts of Rome?

Coin at the edge of the pocket

Twelve Labours - Conclusion

How does Surf crit in a multi-battle?

What does the word 「ちゃらくさい」mean?

Can I be fired the same day that I hand in my notice?

Why is "runway behind you" useless?

Can I leave my car sitting outside for about 5 years?

Is DC 5V and 2A dangerous to me?

Does T have to be a complete type to be used in `std::declval<T>`?

Why doesn't knowledge of how magic works break magic in this world?

What specifically can swap do that RAM can't

iOS app submission - access to username/password

Can a creature with only a swim speed even move while on land?

Do I need to rip the leaves off mint?

Could the Unarmed Knight be successful in a battle?

How did William the Conqueror consolidate his military victory?

Are unitarily equivalent permutation matrices permutation similar?

Help me pair my left and right socks!

How do I get a stuck gas canister (for hiking/camping) out of a stainless steel mug?

Why don't all States switch to all postal voting?

Isn't Social Security set up as a Pension Fund as opposed to a Direct Transfers Scheme?

Advent of Code 2019: Day 4

Has anyone attempted to characterize chess mathematically?



/extractor/backoff_sampler.cc:24:18: error: ‘round’ was not declared in this scope


How to compile C++ source code (“iostream.h not found” error)?Error while installing tiff-4.0.3Building TrueCrypt on Ubuntu 14.04Error: ‘strlen’ was not declared in this scopeUbuntu SDK error running scope exampleCould not find wx-config error when building Audacity from sourcemake error cmath ‘::cos’ has not been declaredhow to solve this error? (collect2: fatal error: cannot find 'ld')






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1


















I am trying to build cdec on Ubuntu 18.04.1 LTS (running in VirtualBox on Windows 10). Please note that I am not at all an experienced Linux power-user.



I executed the commands given in the aforementioned cdec repo:



cmake .
make -j4
make test
./tests/run-system-tests.pl


However, during make I got an error to which I couldn't find the trace. Disabling multithreads and setting VERBOSE (make VERBOSE=1), I got the following trace:



[ 79%] Building CXX object extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o
cd /tmp/cdec/build/extractor && /usr/bin/c++ -DHAVE_CONFIG_H -DKENLM_MAX_ORDER=6 -I/tmp/cdec -I/tmp/cdec/build -I/usr/include/eigen3 -I/tmp/cdec/extractor/../utils -I/tmp/cdec/extractor -I/tmp/cdec/extractor/features -Wall -std=c++11 -O3 -g -fopenmp -o CMakeFiles/extractor.dir/backoff_sampler.cc.o -c /tmp/cdec/extractor/backoff_sampler.cc
/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


I am not at all a C++ developer, but I would assume that the source code was written for a compiler that has a native round() function (or something like that?), but that on my set-up this is not the case.



I am not sure which information could be useful, so here's a guess:



  • Ubuntu 18.04.1 LTS

  • gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0

  • GNU Make 4.1

I will probably have to do changes in the source code I assume, but I don't know what to change to or replace by what. Any indicators are welcome.



Note: bug was reported to the developer.










share|improve this question

































    1


















    I am trying to build cdec on Ubuntu 18.04.1 LTS (running in VirtualBox on Windows 10). Please note that I am not at all an experienced Linux power-user.



    I executed the commands given in the aforementioned cdec repo:



    cmake .
    make -j4
    make test
    ./tests/run-system-tests.pl


    However, during make I got an error to which I couldn't find the trace. Disabling multithreads and setting VERBOSE (make VERBOSE=1), I got the following trace:



    [ 79%] Building CXX object extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o
    cd /tmp/cdec/build/extractor && /usr/bin/c++ -DHAVE_CONFIG_H -DKENLM_MAX_ORDER=6 -I/tmp/cdec -I/tmp/cdec/build -I/usr/include/eigen3 -I/tmp/cdec/extractor/../utils -I/tmp/cdec/extractor -I/tmp/cdec/extractor/features -Wall -std=c++11 -O3 -g -fopenmp -o CMakeFiles/extractor.dir/backoff_sampler.cc.o -c /tmp/cdec/extractor/backoff_sampler.cc
    /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


    I am not at all a C++ developer, but I would assume that the source code was written for a compiler that has a native round() function (or something like that?), but that on my set-up this is not the case.



    I am not sure which information could be useful, so here's a guess:



    • Ubuntu 18.04.1 LTS

    • gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0

    • GNU Make 4.1

    I will probably have to do changes in the source code I assume, but I don't know what to change to or replace by what. Any indicators are welcome.



    Note: bug was reported to the developer.










    share|improve this question





























      1













      1









      1








      I am trying to build cdec on Ubuntu 18.04.1 LTS (running in VirtualBox on Windows 10). Please note that I am not at all an experienced Linux power-user.



      I executed the commands given in the aforementioned cdec repo:



      cmake .
      make -j4
      make test
      ./tests/run-system-tests.pl


      However, during make I got an error to which I couldn't find the trace. Disabling multithreads and setting VERBOSE (make VERBOSE=1), I got the following trace:



      [ 79%] Building CXX object extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o
      cd /tmp/cdec/build/extractor && /usr/bin/c++ -DHAVE_CONFIG_H -DKENLM_MAX_ORDER=6 -I/tmp/cdec -I/tmp/cdec/build -I/usr/include/eigen3 -I/tmp/cdec/extractor/../utils -I/tmp/cdec/extractor -I/tmp/cdec/extractor/features -Wall -std=c++11 -O3 -g -fopenmp -o CMakeFiles/extractor.dir/backoff_sampler.cc.o -c /tmp/cdec/extractor/backoff_sampler.cc
      /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


      I am not at all a C++ developer, but I would assume that the source code was written for a compiler that has a native round() function (or something like that?), but that on my set-up this is not the case.



      I am not sure which information could be useful, so here's a guess:



      • Ubuntu 18.04.1 LTS

      • gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0

      • GNU Make 4.1

      I will probably have to do changes in the source code I assume, but I don't know what to change to or replace by what. Any indicators are welcome.



      Note: bug was reported to the developer.










      share|improve this question
















      I am trying to build cdec on Ubuntu 18.04.1 LTS (running in VirtualBox on Windows 10). Please note that I am not at all an experienced Linux power-user.



      I executed the commands given in the aforementioned cdec repo:



      cmake .
      make -j4
      make test
      ./tests/run-system-tests.pl


      However, during make I got an error to which I couldn't find the trace. Disabling multithreads and setting VERBOSE (make VERBOSE=1), I got the following trace:



      [ 79%] Building CXX object extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o
      cd /tmp/cdec/build/extractor && /usr/bin/c++ -DHAVE_CONFIG_H -DKENLM_MAX_ORDER=6 -I/tmp/cdec -I/tmp/cdec/build -I/usr/include/eigen3 -I/tmp/cdec/extractor/../utils -I/tmp/cdec/extractor -I/tmp/cdec/extractor/features -Wall -std=c++11 -O3 -g -fopenmp -o CMakeFiles/extractor.dir/backoff_sampler.cc.o -c /tmp/cdec/extractor/backoff_sampler.cc
      /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


      I am not at all a C++ developer, but I would assume that the source code was written for a compiler that has a native round() function (or something like that?), but that on my set-up this is not the case.



      I am not sure which information could be useful, so here's a guess:



      • Ubuntu 18.04.1 LTS

      • gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0

      • GNU Make 4.1

      I will probably have to do changes in the source code I assume, but I don't know what to change to or replace by what. Any indicators are welcome.



      Note: bug was reported to the developer.







      compiling c++ make






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 19 '18 at 16:50









      N0rbert

      36.3k10 gold badges85 silver badges169 bronze badges




      36.3k10 gold badges85 silver badges169 bronze badges










      asked Sep 19 '18 at 8:47









      Bram VanroyBram Vanroy

      1113 bronze badges




      1113 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0



















          I recommend that your delete the program folder and install a new one from the archive. Your stopped at 79% of the installation and have the error "extractor.dir / backoff_sampler", to get around it you need to re-create (your start from the end) the 'cdec' folder in a new unzipped program. (I used Ubuntu 18.04.3 LTS on hdd).



          # apt-get install cmake git build-essential libboost-dev libboost-regex-dev libboost-filesystem-dev libboost-serialization-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libeigen3-dev libbz2-dev liblzma-dev flex libgtest-dev



          # git clone https://github.com/redpony/cdec.git



          # cd cdec



          # apt-get update



          # apt-get install golang-github-cenkalti-backoff-dev



          # cmake .



          # make -j4



          # reboot



          # cd cdec



          # cmake .



          # make -j4






          share|improve this answer




























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1076546%2fextractor-backoff-sampler-cc2418-error-round-was-not-declared-in-this-sco%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0



















            I recommend that your delete the program folder and install a new one from the archive. Your stopped at 79% of the installation and have the error "extractor.dir / backoff_sampler", to get around it you need to re-create (your start from the end) the 'cdec' folder in a new unzipped program. (I used Ubuntu 18.04.3 LTS on hdd).



            # apt-get install cmake git build-essential libboost-dev libboost-regex-dev libboost-filesystem-dev libboost-serialization-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libeigen3-dev libbz2-dev liblzma-dev flex libgtest-dev



            # git clone https://github.com/redpony/cdec.git



            # cd cdec



            # apt-get update



            # apt-get install golang-github-cenkalti-backoff-dev



            # cmake .



            # make -j4



            # reboot



            # cd cdec



            # cmake .



            # make -j4






            share|improve this answer































              0



















              I recommend that your delete the program folder and install a new one from the archive. Your stopped at 79% of the installation and have the error "extractor.dir / backoff_sampler", to get around it you need to re-create (your start from the end) the 'cdec' folder in a new unzipped program. (I used Ubuntu 18.04.3 LTS on hdd).



              # apt-get install cmake git build-essential libboost-dev libboost-regex-dev libboost-filesystem-dev libboost-serialization-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libeigen3-dev libbz2-dev liblzma-dev flex libgtest-dev



              # git clone https://github.com/redpony/cdec.git



              # cd cdec



              # apt-get update



              # apt-get install golang-github-cenkalti-backoff-dev



              # cmake .



              # make -j4



              # reboot



              # cd cdec



              # cmake .



              # make -j4






              share|improve this answer





























                0















                0











                0









                I recommend that your delete the program folder and install a new one from the archive. Your stopped at 79% of the installation and have the error "extractor.dir / backoff_sampler", to get around it you need to re-create (your start from the end) the 'cdec' folder in a new unzipped program. (I used Ubuntu 18.04.3 LTS on hdd).



                # apt-get install cmake git build-essential libboost-dev libboost-regex-dev libboost-filesystem-dev libboost-serialization-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libeigen3-dev libbz2-dev liblzma-dev flex libgtest-dev



                # git clone https://github.com/redpony/cdec.git



                # cd cdec



                # apt-get update



                # apt-get install golang-github-cenkalti-backoff-dev



                # cmake .



                # make -j4



                # reboot



                # cd cdec



                # cmake .



                # make -j4






                share|improve this answer
















                I recommend that your delete the program folder and install a new one from the archive. Your stopped at 79% of the installation and have the error "extractor.dir / backoff_sampler", to get around it you need to re-create (your start from the end) the 'cdec' folder in a new unzipped program. (I used Ubuntu 18.04.3 LTS on hdd).



                # apt-get install cmake git build-essential libboost-dev libboost-regex-dev libboost-filesystem-dev libboost-serialization-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libeigen3-dev libbz2-dev liblzma-dev flex libgtest-dev



                # git clone https://github.com/redpony/cdec.git



                # cd cdec



                # apt-get update



                # apt-get install golang-github-cenkalti-backoff-dev



                # cmake .



                # make -j4



                # reboot



                # cd cdec



                # cmake .



                # make -j4







                share|improve this answer















                share|improve this answer




                share|improve this answer








                edited Sep 29 at 21:31

























                answered Aug 29 at 19:34









                Fithe_XankiFithe_Xanki

                12 bronze badges




                12 bronze badges































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1076546%2fextractor-backoff-sampler-cc2418-error-round-was-not-declared-in-this-sco%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?