Qtruby compilation error

This is a known problem - there is some sort of incompatibility between
Qt and ruby on startup. The fix is to start your program via 'krubyinit'
(found in korundum/bin).

-- Richard

Hi, thanks for the information.
I found krubyinit.cpp here:

http://webcvs.kde.org/cgi-bin/cvsweb.cgi/~checkout~/kdebindings/korundum/bin/krubyinit.cpp?rev=1.3&content-type=text/plain

I tried to compile it with:

$ gcc -I/usr/lib/ruby/1.8/i686-linux -o krubyinit krubyinit.cpp -lruby

and received the error:

/tmp/cc5G9T5J.o(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'

Is there anything else needed to link it with?

I haven't heard of that one before. The build problem I had with krubyinit
was that it was expecting to link against libruby.so, and ruby didn't build
that be default. I needed to use '--enable-shared' configure option and
build ruby. I searched google for your error, and it looks like you need to
link with g++ rather than gcc.

-- Richard

Using g++ instead of gcc worked. But still the same segmentation fault. :frowning:

regards
Jochen

···

ruby-talk@ruby-lang.org schrieb am 14.07.04 09:58:00: Jochen Immendörfer wrote:

_______________________________________________________
WEB.DE Video-Mail - Sagen Sie mehr mit bewegten Bildern
Informationen unter: E-Mail-Adresse erstellen kostenlos | FreeMail

you need to link in qt

Alex

···

On Thu, Jul 15, 2004 at 03:26:41PM +0900, =?iso-8859-1?Q? Jochen=20Immend=F6rfer ?= wrote:

Using g++ instead of gcc worked. But still the same segmentation fault. :frowning:

Linked with qt it is finally working! Thank you!

Jochen

···

Am Donnerstag 15 Juli 2004 09:44 schrieb Alexander Kellett:

On Thu, Jul 15, 2004 at 03:26:41PM +0900, =?iso-8859-1?Q? Jochen=20Immend=F6rfer ?= wrote:
> Using g++ instead of gcc worked. But still the same segmentation fault.
> :frowning:

you need to link in qt

Alex