[GCC-XML]RedHat 7.3 install problems

Evan Carew carew at pobox.com
Tue Mar 4 14:43:30 EST 2003


Brad,

Included at the end of this email is the listing output I am using to 
generate the bug I mentioned earlier.

Evan

Brad King wrote:

>>I may owe the developers an appology. It seems it was working after all.
>>The trick is that you must use the command line argument which specifies
>>the classes you want written out. If you simply put the C++ source file
>>on the command line with a target file to dump the XML, it barfs.
>>    
>>
>[snip]
>  
>
>>As the instructions are a little vague on this issue, I assume this was
>>the designer's intent. This being my first time using the application,
>>I'm having a little trouble understanding why the default behavior
>>shouldn't be to print out all objects described in the source file.
>>Perhaps someone could educate me on this one, (ie it could have
>>something to do with GCC's default behavior which you can't change).
>>    
>>
>
>It should dump everything in the C++ translation unit (with all
>#include'ed files too) by default.  The fact that it crashes for this is
>definately not intended behavior.  Please use your compiler to produce
>preprocessed output of the source in question:
>
>g++ -E testing.C
>
>Then send me the output.  It should be enough for me to attempt to
>duplicate your problem.
>
>-Brad
>
>  
>

[root at angus Develop]# g++ -E xmlgcc.C
# 1 "xmlgcc.C"
class kick{
public:
  int force;
};

class trid{
public:
  kick *kicks[4];
};

int main(){
  trid trids;
  trids.kicks[0] = new kick();
  trids.kicks[1] = new kick();
  trids.kicks[2] = new kick();
  trids.kicks[3] = new kick();
  return 0;
}





More information about the gccxml mailing list