On May 24, 2007, at 8:07 PM, Brett L. Trotter wrote:
Traceback (most recent call last):
  File "./test.py", line 18, in ?
    main()
  File "./test.py", line 15, in main
    encode_rs_char(rs_handle, teststr, paritystr)
TypeError: in method 'encode_rs_char', argument 2 of type 'unsigned char *'

so what can I pass it?

I think you'll need to pass "const std::vector<char> &" since C++, SWIG, and Python all know what this is [a reference to a std::vector of chars, that cannot be modified by the receiving function]. That works for other blocks used in GNU Radio, IIRC. - MLD


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to