I SOLVED IT ...
thanks for people who provided me help .. but i believe solved it
myself. .haha .. took me long time..
so .. the solution is something like this..
in my c function ..which calls python call ..
[code]
PyObject *argobj = SWIG_NewPointerObj(SWIG_as_voidptr(&msg2),
SWIGTYPE_p_RFA
Roman Yakovenko writes:
> On Tue, Dec 8, 2009 at 5:55 PM, Nikolaus Rath wrote:
>>
>> Hello,
>>
>> Is it possible to use Py++ to "convert" structures from a C header, say
>>
>> ,
>> | struct flock
>> | {
>> | short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
>> |
Hi Nathan,
We have converters written at the end of 2006. We never needed to convert them
to the more powerful newer versions of Boost-Python as they still build fine.
So they might look outdated.
They can convert scalars, sequences, dicts, and numpy arrays of many types,
also all numeric nump
Hi,
I have something like this in my code:
void function(numeric::array& ids)
{
...
int x=extract(ids[make_tuple(pos)]);
...
}
Now I plug in a numpy arra with dtype=np.int32.
I get:
No registered converter was able to produce a C++ rvalue of type int
from this Python object of type n