I\'m using gnuplot-cpp to draw math graphs using C++. As I vaguely understand, this is an interface which feeds command to pgnuplot.exe and shows the output in another GUI.
This is a known bug of gnuplot-cpp, see the issue Blanks in gnuplot path cause failure.
As workaround you can add the gnuplot directory to your PATH and call only pgnuplot.exe.
PATH
pgnuplot.exe