gsl/XS

---559023410-1804928587-1279322578=:22350
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

Hello,

Could somebody tell me what is wrong with this code (I get a segmentation
fault):
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <stdlib.h>

#include <gsl/gsl_matrix.h>

typedef gsl_matrix* Math__GSL__Matrix__gsl_matrix ;

#include "const-c.inc"

MODULE =3D Test_gsl PACKAGE =3D Test_gsl

double
TOI (WF, size)
Math::GSL::Matrix::gsl_matrix WF
unsigned int size
PREINIT:
double tmp ;
CODE:
printf ("Size %d\n", size) ;
tmp =3D gsl_matrix_get (WF, 0, 0) ;
printf ("%g\n", tmp) ;
RETVAL =3D tmp ;
OUTPUT:
RETVAL


called by:

my $Matr_gsl =3D gsl_matrix_alloc (3, 3) ;
print ref $Matr_gsl, "\n" ;B
Test_gsl::TOI ($Matr_gsl, $size_mat) ;


Thank

--
---
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D
Patrick DUPR=C3=89 | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: pd520 [at] york.ac.uk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D

---559023410-1804928587-1279322578=:22350
Content-Type: text/plain; charset=us-ascii

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/

---559023410-1804928587-1279322578=:22350--
Patrick Dupre [ Sa, 17 Juli 2010 01:22 ] [ ID #2044675 ]

Re: gsl/XS

i have to say, segment faults, gsl and XS are not what anyone would call
beginners' list topics. there are many other places you can post such
problems and questions.

thanx,

uri

--
Uri Guttman ------ uri [at] stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Uri Guttman [ Sa, 17 Juli 2010 04:17 ] [ ID #2044676 ]

Re: gsl/XS

--00c09f8992faa57b83048b8cfb96
Content-Type: text/plain; charset=ISO-8859-1

Hi Uri;

Could you be a little more helpful and suggest just one of those many
places to post a more advanced question that is too advanced for this
mailing list? Perhaps perlmonks.org?

Thanks,
Ken Wolcott

On Fri, Jul 16, 2010 at 19:17, Uri Guttman <uri [at] stemsystems.com> wrote:

>
> i have to say, segment faults, gsl and XS are not what anyone would call
> beginners' list topics. there are many other places you can post such
> problems and questions.
>
> thanx,
>
> uri
>
> --
> Uri Guttman ------ uri [at] stemsystems.com -------- http://www.sysarch.com--
> ----- Perl Code Review , Architecture, Development, Training, Support
> ------
> --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com---------
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
> For additional commands, e-mail: beginners-help [at] perl.org
> http://learn.perl.org/
>
>
>

--00c09f8992faa57b83048b8cfb96--
Kenneth Wolcott [ Sa, 17 Juli 2010 05:32 ] [ ID #2044677 ]

Re: gsl/XS

>>>>> "KW" =3D=3D Kenneth Wolcott <kennethwolcott [at] gmail.com> writes:

KW> =A0 Could you be a little more helpful and suggest just one of those
KW> many places to post a more advanced question that is too advanced
KW> for this mailing list?=A0 Perhaps perlmonks.org?

you just did one. usenet, other mailing lists (lists.perl.org), web
forums (too many to name), irc (#perl(help) on various nets). the usual
suspects. i can't always name them and they are easy to find.

uri

--
Uri Guttman ------ uri [at] stemsystems.com -------- http://www.sysarch.com =
--
----- Perl Code Review , Architecture, Development, Training, Support ----=
--
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com -------=
--

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Uri Guttman [ Sa, 17 Juli 2010 05:34 ] [ ID #2044678 ]

Re: gsl/XS

On Saturday 17 Jul 2010 06:32:20 Kenneth Wolcott wrote:
> Hi Uri;
>
> Could you be a little more helpful and suggest just one of those many
> places to post a more advanced question that is too advanced for this
> mailing list? Perhaps perlmonks.org?
>

In addition to what Uri said, there's perl-xs [at] perl.org for XS discussions ,
and there's also Stack Overflow ( http://stackoverflow.com/ ), though I don't
know how many XS experts hang on there (but it is on-topic there).

Regards,

Shlomi Fish

> Thanks,
> Ken Wolcott
>

--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
"The Human Hacking Field Guide" - http://shlom.in/hhfg

God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Shlomi Fish [ Sa, 17 Juli 2010 08:37 ] [ ID #2044679 ]

Re: gsl/XS

On Jul 16, 8:32=A0pm, kennethwolc... [at] gmail.com (Kenneth Wolcott) wrote:

> =A0 Could you be a little more helpful and suggest just one of those many
> places to post a more advanced question that is too advanced for this
> mailing list? =A0Perhaps perlmonks.org?
>

perl.xs is another possibility:

http://groups.google.is/group/perl.xs/about
http://groups.google.com/group/perl.xs/topics/

--
Charles DeRykus


--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
derykus [ So, 18 Juli 2010 01:22 ] [ ID #2044771 ]
Perl » gmane.comp.lang.perl.beginners » gsl/XS

Vorheriges Thema: need explanation
Nächstes Thema: Track user login status