Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
symbol lookup error
Audun Skaugen
5/30/2007 8:00:00 PM
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...
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.
--
Posted via
http://www.ruby-...
.
1 Answer
Eric Hodel
5/30/2007 9:15:00 PM
0
On May 30, 2007, at 13:00, Audun Skaugen wrote:
>
http://pastebin...
>
> 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.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
symbol lookup error
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password