SciRuby / nmatrix

Dense and sparse linear algebra library for Ruby via SciRuby
Other
469 stars 133 forks source link

Error when compiling extension in Ruby 2.3.0 #485

Open v0dro opened 8 years ago

v0dro commented 8 years ago

When compiling rb-gsl with nmatrix, (and including nmatrix.h in the file) I get the following error:

/home/sameer/.rvm/gems/ruby-2.3.0/extensions/x86-linux/2.3.0/nmatrix-0.2.1/nmatrix.h:72:1: error: redefinition of ‘rb_array_const_ptr’
 rb_array_const_ptr(VALUE a)
 ^
In file included from /home/sameer/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby.h:33:0,
                 from ../../../../ext/gsl_native/include/rb_gsl_complex.h:17,
                 from ../../../../ext/gsl_native/include/rb_gsl_poly.h:17,
                 from ../../../../ext/gsl_native/include/rb_gsl.h:18,
                 from ../../../../ext/gsl_native/geometry.c:1:
/home/sameer/.rvm/rubies/ruby-2.3.0/include/ruby-2.3.0/ruby/ruby.h:2018:1: note: previous definition of ‘rb_array_const_ptr’ was here
 rb_array_const_ptr(VALUE a)
Shailesh-Tripathi commented 7 years ago

Hi @v0dro I would like to help with this issue. Please tell me exactly how to reproduce the error.