Hi, Sorry for the delay because of computer problem. Here is the process that I went through. Ram Kochhar linux version 2.2.15-4dmk ruby 1.6.1 (2000-09-27) [i586-linux-gnu] gcc version 2.95.3 (pre release) > ruby extconf.rb ------------------------------------- checking for main() in -lm... yes checking for sincos()... yes checking for asinh()... yes checking for fftw.h... no creating Makefile > make ----------------------------------------- gcc -fPIC -O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpensi ve-optimizations -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_SINCO S -DHAVE_ASINH -c -o narray.o narray.c In file included from narray.c:10: narray.h:11: warning: redefinition of `u_int8_t' /usr/include/sys/types.h:176: warning: `u_int8_t' previously declared here narray.h:12: warning: redefinition of `int16_t' /usr/include/sys/types.h:171: warning: `int16_t' previously declared here narray.h:13: warning: redefinition of `int32_t' /usr/include/sys/types.h:172: warning: `int32_t' previously declared here gcc -fPIC -O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpensi ve-optimizations -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_SINCO S -DHAVE_ASINH -c -o na_array.o na_array.c In file included from na_array.c:7: narray.h:11: warning: redefinition of `u_int8_t' /usr/include/sys/types.h:176: warning: `u_int8_t' previously declared here narray.h:12: warning: redefinition of `int16_t' /usr/include/sys/types.h:171: warning: `int16_t' previously declared here narray.h:13: warning: redefinition of `int32_t' /usr/include/sys/types.h:172: warning: `int32_t' previously declared here gcc -fPIC -O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpensi ve-optimizations -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_SINCO S -DHAVE_ASINH -c -o na_func.o na_func.c In file included from na_func.c:7: narray.h:11: warning: redefinition of `u_int8_t' /usr/include/sys/types.h:176: warning: `u_int8_t' previously declared here narray.h:12: warning: redefinition of `int16_t' /usr/include/sys/types.h:171: warning: `int16_t' previously declared here narray.h:13: warning: redefinition of `int32_t' /usr/include/sys/types.h:172: warning: `int32_t' previously declared here gcc -fPIC -O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpensi ve-optimizations -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_SINCO S -DHAVE_ASINH -c -o na_index.o na_index.c In file included from na_index.c:7: narray.h:11: warning: redefinition of `u_int8_t' /usr/include/sys/types.h:176: warning: `u_int8_t' previously declared here narray.h:12: warning: redefinition of `int16_t' /usr/include/sys/types.h:171: warning: `int16_t' previously declared here narray.h:13: warning: redefinition of `int32_t' /usr/include/sys/types.h:172: warning: `int32_t' previously declared here gcc -fPIC -O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpensi ve-optimizations -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_SINCO S -DHAVE_ASINH -c -o na_math.o na_math.c In file included from na_math.c:8: narray.h:11: warning: redefinition of `u_int8_t' /usr/include/sys/types.h:176: warning: `u_int8_t' previously declared here narray.h:12: warning: redefinition of `int16_t' /usr/include/sys/types.h:171: warning: `int16_t' previously declared here narray.h:13: warning: redefinition of `int32_t' /usr/include/sys/types.h:172: warning: `int32_t' previously declared here gcc -fPIC -O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpenve-optimizations -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_SINS -DHAVE_ASINH -c -o na_linalg.o na_linalg.c In file included from na_linalg.c:7: narray.h:11: warning: redefinition of `u_int8_t' /usr/include/sys/types.h:176: warning: `u_int8_t' previously declared here narray.h:12: warning: redefinition of `int16_t' /usr/include/sys/types.h:171: warning: `int16_t' previously declared here narray.h:13: warning: redefinition of `int32_t' /usr/include/sys/types.h:172: warning: `int32_t' previously declared here gcc -shared -o narray.so narray.o na_array.o na_func.o na_index.o na_op.o naath.o na_linalg.o -lm -lc > make install > ruby testcomplex.rb ---------------------------------- testcomplex.rb:1:in `require': /usr/lib/ruby/1.6/i586-linux-gnu/narray.so: undefined symbol: MinFuncs - /usr/lib/ruby/1.6/i586-linux-gnu/narray.so (LoadError) ----- Original Message ----- From: <masa / stars.gsfc.nasa.gov> To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Friday, April 06, 2001 10:53 AM Subject: [ruby-talk:13539] Re: narray and undefined symbol > Hi, > > >From: "Ram Kochhar" <r.kochhar01 / worldnet.att.net> > >Subject: [ruby-talk:13522] narray and undefined symbol > > > I am new to ruby. I compiled narray on linux box (Mandrake 7.1). When I > > try to run a test case I get the > > error that symbol MinFunc is undefined. I will appreciate any help. > > Thanks. > > Please describe how did you compile NArray and install it. > Copy-and-pasted error messages are useful. > > Masa Tanaka