At 9:00 PM +0000 11/28/02, Leon Brocard wrote:
Dan Sugalski sent the following bits through the ether:

 Also, at the moment I can't test this
OK, I've had a go. I'm basing the following on the code you mentioned
at http://use.perl.org/~Elian/journal/9147 (of course, you should know
better than to use "exit" in parrot assembler ;-) and basic code at
http://www.libsdl.org/intro/usinginit.html:

loadlib P1, "libSDL-1.2.so.0"
print "Loaded...\n"
dlfunc P0, P1, "SDL_Init", "i"
print "dlfunced...\n"
set I5, 48 # SDL_INIT_AUDIO|SDL_INIT_VIDEO
invoke
unless I5, OK
print "SDL_Init failed!\n"
end
OK:
print "SDL_Init worked just fine\n"
end

I get:

Loaded...
dlfunced...
../parrot: relocation error: /usr/lib/libSDL-1.2.so.0: undefined symbol: pthread_mutexattr_init

Well, the C code on the page works fine, but of course you have to
link it with -lpthread. How would I do this for the parrot code?

Leon
--
Leon Brocard.............................http://www.astray.com/
scribot.................................http://www.scribot.com/

.... (Tagline 3 of 12) - Collect them all!

--
                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to