From: Hamlet B. <ha...@ne...> - 2006-06-19 14:44:08
|
Sohail Somani wrote: >> -----Original Message----- >> From: swi...@li... >> [mailto:swi...@li...] On Behalf Of >> Hamlet Batista >> Sent: Thursday, June 15, 2006 8:59 AM >> To: swi...@li... >> Subject: [Swig-user] How to access incomplete type from Python >> >> Hi, >> >> I have this definition >> >> /* Private object */ >> typedef struct _CAS_ConversationFactory CAI_ConversationFactory; >> >> where _CAS_ConversationFactory is on a shared library for >> which I dont' have source code. >> > > You probably access it through pointers don't you? In that case you > probably have to do something like: > > %include <cpointer.i> > %pointer_functions(CAI_ConversationFactory,CAI_ConversationFactoryP); > Thanks. I tried that but I get errors ../include/CAI_wrap.c: In function `new_CAI_ConversationFactoryP': ../include/CAI_wrap.c:2850: error: invalid application of `sizeof' to incomplete type `../include/CAI_ConversationFactory.h' |