Use of gets() in PLK plugin

Issue #38 resolved
Former user created an issue

When the current master at the time of report on a machine with debian stretch, the installation fails at the "make plugins" step with the message

plk_plug.C:2522:15: error: 'gets' was not declared in this scope

The reason is that debian stretch ships with g++ version 6.3.0. This compiler ist new enough to obey the removal of gets from the 2011 language standard. The attached patch replaces the gets() calls with appropriate fgets() calls.

Comments (5)

  1. Abhimanyu Susobhanan

    I have encountered this issue as well. I got around it by adding the following line to my ~/.bashrc :
    export CXX="g++ -std=c++11"

  2. Log in to comment