[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Python report typeError of argument for my block
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] Python report typeError of argument for my block |
Date: |
Thu, 15 Nov 2012 19:20:05 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 |
On 11/15/2012 06:44 PM, Alex Zhang wrote:
> Hello,
>
> I wrote a signal block whose constructor has an argument of type
> "uint64_t". But when in python it is constructed, the error is reported
> as TypeErrorL in method 'myblock', argument 1 of type 'uint64_t'.
>
> Then I changed the uint64_t to unsigned long long in my C++ code, but the
> python still report TypeError for 'unsigned long long'.
>
> I am thinking that SWIG can not recognize the uint64_t and unsigned long
> long, so I need to do something like type mapping , but not know how to do
> it.
> Is there any example that I can follow?
>
It should be possible. Try adding %include <stdint.i> at the top of your
swig file.
-josh
> Thanks
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>