symbol lookup error

A

Audun Skaugen

Hi,
I have recently become interested in Ruby as an alternative to Python. I
was amazed at how easy to use Ruby's C API seems to be, so I decided to
try it out.
I went ahead and started wrapping one of the most fun libraries I know
of: The Open Dynamics Engine.

I started wrapping the world object with a getter and setter for
gravity. The code can be found here:

http://pastebin.ca/523445

I compiled with:

gcc -fPIC -I /usr/lib/ruby/1.8/i486-linux -I /usr/include/ode -g -O2 -c
ode_world.c -o world.o
cc -shared -o world.so world.o -lc

After compiling I fired up irb and ran a require("world"), then called
ODE::World.new. After which irb quitted, reporting:

irb: symbol lookup error: ./world.so: undefined symbol: dWorldCreate

Whatever causes that error?

Thanks for the help.
 
E

Eric Hodel

http://pastebin.ca/523445

I compiled with:

gcc -fPIC -I /usr/lib/ruby/1.8/i486-linux -I /usr/include/ode -g -
O2 -c
ode_world.c -o world.o
cc -shared -o world.so world.o -lc

Shouldn't there be a -lode in here somewhere?
After compiling I fired up irb and ran a require("world"), then called
ODE::World.new. After which irb quitted, reporting:

irb: symbol lookup error: ./world.so: undefined symbol: dWorldCreate

PS: RubyInline is even cooler.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top