On Sun, Jul 21, 2002 at 02:05:42PM +0000, s. payrard @ wanadoo. fr wrote: > # New Ticket Created by s.payrard@wanadoo.fr > # Please include the string: [perl #15267] > # in the subject line of all future correspondence about this issue. > # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=15267 > > > > This seems a symptom of a bigger problem. > include/parrot/interpreter.h has the following typedef: > > typedef struct Parrot_Interp *Parrot_Interp; > > It works in C but breaks in C++ (using g++-3.1) as demonstrated > by the breakage of example/pxs: > > > ..../../include/parrot/interpreter.h:32: conflicting types for `typedef struct Parrot_Interp*Parrot_Interp' > ..../../include/parrot/interpreter.h:30: previous declaration as `struct Parrot_Interp' > In file included from ../../include/parrot/interpreter.h:44, > from ../../include/parrot/parrot.h:114, > from ../../include/parrot/pxs.h:14, > from PQt.C:15: > > Also, the modifs of pxs.h form CVS 1.2 to 1.3 (replacing > Parrot_Interp_t by parrot_interp_t) also does not fix anything > but confuses a little more the problem. > > in my opinion "typedef struct Parrot_Interp *Parrot_Interp;" is not > only too cute, it is wrong in the light of C++ I want to play with Qt from parrot and started from the example in ./example/pxs. It had not followed the flux of parrot. Problems were going beyond those I described. So I fixed it. Tested with perl 5.008 on linux. > > -- > stef > -- stefThread Previous | Thread Next