Binding Octave Libraries

I am working with embed octave. While building the library, I am encountered this error, can anyone suggest solution for this.

/usr/local/lib/octave/5.1.0/oct/x86_64-pc-linux-gnu/PKG_ADD: /usr/local/lib/octave/5.1.0/oct/x86_64-pc-linux-gnu/init_gnuplot.oct: failed to load: /usr/local/lib/octave/5.1.0/oct/x86_64-pc-linux-gnu/init_gnuplot.oct: undefined symbol: _ZTI18handle_cdef_object

Thank you in advance.