Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

enum, OpaquePointer or Int? both wrong #5

Closed
payload opened this Issue Jan 13, 2011 · 1 comment

Comments

Projects
None yet
2 participants

payload commented Jan 13, 2011

use NativeCall;
sub cairo_format_stride_for_width(Int $format, Int $width)
returns Int
is native('libcairo') { ... }

===SORRY!===
Could not locate symbol 'cairo_format_stride_for_width (iii)' in native library 'libcairo'

should just work
the error is near pir::dlfunc_PPss( ... ). it is a parrot bug for sure
$format is a enum, but even as a OpaquePointer it cant be found
the function is in nm libcairo.a
doc for the function is here:
http://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-format-stride-for-width

thanks for your lib! ^^ it will be useful for me

Collaborator

arnsholt commented Aug 7, 2012

Looks like this is an issue with the old version of Zavolaj. This should work now (though you might want int rather than Int for the enum parameter).

@arnsholt arnsholt closed this Aug 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment