Hello. I have a problem with fxruby; note that plain C++ Fox works. I took a simple example from the tutorial and here is the result: erwan@bourricot temp $ ruby test.rb /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so: /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so: undefined symbol: _ZN2FX8FXStringC1EPKc - /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so (LoadError) from test.rb:1 I read on the archives a similar problem, so I tried the following command to check if the bindings lib fox.so is linked to fox itself: erwan@bourricot temp $ ldd /usr/lib/ruby/site_ruby/1.8/i686-linux/fox.so linux-gate.so.1 => (0xffffe000) libruby18.so.1.8 => /usr/lib/libruby18.so.1.8 (0x405b8000) libFOX-1.0.so.0 => /usr/local/lib/libFOX-1.0.so.0 (0x40685000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0x40911000) libGL.so.1 => /usr/lib/opengl/xorg-x11/lib/libGL.so.1 (0x4098d000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40a07000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40ad1000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40ae0000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40b2d000) libz.so.1 => /lib/libz.so.1 (0x40b4b000) libpng.so.3 => /usr/lib/libpng.so.3 (0x40b5b000) libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x40b8d000) libpthread.so.0 => /lib/libpthread.so.0 (0x40c56000) libdl.so.2 => /lib/libdl.so.2 (0x40ca8000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40cab000) libm.so.6 => /lib/libm.so.6 (0x40cd8000) libc.so.6 => /lib/libc.so.6 (0x40cfa000) libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x40e0d000) libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x40e16000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) -- Erwan Loisant
On Tue, 2 Nov 2004 22:49:17 +0900, Erwan Loisant <eloisant@gmail.com> wrote :> I have a problem with fxruby; note that plain C++ Fox works. I took a > simple example from the tutorial and here is the result:<snip> Which version of FXRuby are you working with?
On 2 Nov 2004 15:47:54 -0000, lyle@knology.net <lyle@knology.net> wrote:> > On Tue, 2 Nov 2004 22:49:17 +0900, Erwan Loisant <eloisant@gmail.com> wrote : > > > I have a problem with fxruby; note that plain C++ Fox works. I took a > > simple example from the tutorial and here is the result: > > <snip> > > Which version of FXRuby are you working with? >fox-1.0.49 FXRuby-1.0.29 (I use 1.0 and not 1.2 because it is required by FreeRide) -- Erwan Loisant
On Wed, 3 Nov 2004 01:50:29 +0900, Erwan Loisant <eloisant@gmail.com> wrote :> On 2 Nov 2004 15:47:54 -0000, lyle@knology.net <lyle@knology.net> wrote: > > > Which version of FXRuby are you working with? > > > > fox-1.0.49 > FXRuby-1.0.29Hmmm. The reason I was asking is that if I try to decipher the name of the undefined symbol ("_ZN2FX8FXStringC1EPKc") it sort-of looks like it''s expecting to see the FXString class in an "FX" namespace -- which wasn''t introduced until FOX 1.2. But the short answer is, I don''t know what to tell you other than "wipe out all of your FOX and FXRuby installations (any versions) and then try again". [I''m thinking that if this were a widespread problem we would have discovered and corrected it by now.]