3 Feb 2003 13:23
RE: [Newbie]:swig wrappers for bootstrapped classes
David Beazley <beazley <at> cs.uchicago.edu>
2003-02-03 12:23:23 GMT
2003-02-03 12:23:23 GMT
Sharma K M writes: > > > > This is almost certainly part of the problem (as "y" is used in the > > wrapper code before it is defined). > > > If I declare class y as a typemap (like your suggestion above), > I get the following compilation error: > > ============================== > sample_wrap.cpp: In function `y x___getitem__ (x *, long int)': > sample_wrap.cpp:713: return type `class y' is incomplete > sample_wrap.cpp:714: invalid use of undefined type `class y' > sample_wrap.cpp:702: forward declaration of `class y' > sample_wrap.cpp:713: return type `class y' is incomplete > make: *** [sample_wrap.lo] Error 1 > ============================== > > Recall the fact that "Class y" has been defined fully > later in the same file. > I somehow doubt it. Are you absolutely sure that a definition of class y appears in the _wrap.c file? If so, then your C++ compiler is broken. -- Dave _______________________________________________ Swig maillist - Swig <at> cs.uchicago.edu http://mailman.cs.uchicago.edu/mailman/listinfo/swig
RSS Feed