in reply to Re^2: mapping a C structure with perlXS
in thread mapping a C structure with perlXS

Note that your s_test is a type:
typedef struct { unsigned *char test;} s_test;
not a struct (which is anonymous here). So you'd probably better:
typedef s_test Test; /* Removed "struct" */
and see if this fixes your problem.

Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

Don't fool yourself.

Replies are listed 'Best First'.
Re^4: mapping a C structure with perlXS
by jeanba (Novice) on May 20, 2005 at 15:23 UTC
    i tried and i had the same message during the make step :
    assignment of an incompatible pointer type
    excuse me for my so bad english ....
      This does not seem the same error message (in the OP you refer to Bad pointer type in paramater number 1). Before going on, you can understand that even if many here are real wizards with Perl, nobody (not even merlyn, whatever he keeps saying :) has real psychic powers.

      Please, post:

      • A minimal fragement of code that produces the error. Begin to take stuff away from your code so that you isolate the very core of the problem.
      • The exact error message that's printed out. assignment of an incompatible pointer type should probably refer to a specific line, so it would be extremely useful to know what's written in that line and in the surrounding context (which returns us to the previous bullet).
      Just pretend to be the one on the other side of the net that's trying to help you: what would you need to try and help?

      My English is as bad as yours, but it seems that we perfectly understand each other (I hope), so don't worry.

      Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

      Don't fool yourself.
        Hi, sorry for my non-answering... I found the solution by using in my C code the funtion :
        PTR2UV(pointer); PTR2IV(pointer); PTR2NV(pointer); INT2PTR(pointertotype, integer);
        they allow me to keep connexion handlers from C code to Perl and Perl to C code...;) thank you for your help !!!