[GCC-XML](no subject)

William A. Hoffman billlist at nycap.rr.com
Mon Jul 28 11:08:30 EDT 2003


You may want to look at this option:

-fxml-start=<xxx>[,...]: Specify a list of starting declarations. This option is passed directly on to the patched GCC C++ parser. It is meaningful only if -fxml= is also specified. This specifies a comma-separated list of named starting declarations. GCC-XML will dump only the subset of the declarations in the translation unit that is reachable through a sequence of source references from one of the specified starting declarations. 


At 11:37 PM 7/24/2003, ambarshukla wrote:

>Dear Brad,
>
>Sincere thanks for your quick reply. The problem i had has been solved.
>
>However, now that i #include<windows.h> , the XML specification for such a small class becomes HUGE, because windows.h itself #includes so many other headers.
>
>Is there any way to selectively expand header files (Say, in this case i want only the contents of the windows.h file and not other files that windows.h includes) ?
>
> 
>
>Thanks a lot again for your quick reply.
>
> 
>
>Sincerely,
>
>~ Ambar Shukla.
>
> 
>
>> class AuthDialog
>> {
>> public:
>> AuthDialog();
>> virtual ~AuthDialog();
>> int DoDialog();
>> TCHAR m_passwd[256];
>> static BOOL CALLBACK DlgProc( HWND hwndDlg, UINT uMsg,
>> WPARAM wParam, LPARAM lParam );
>> };
>[snip]
>> C:\Program Files\GCC_XML> gccxml vnc.h -fxml=test.xml
>> vnc.h:34: parse error before `[' token
>> vnc.h:35: ISO C++ forbids declaration of `BOOL' with no type
>> vnc.h:35: parse error before `DlgProc'
>
>BOOL is not a predefined C or C++ data type. You have to
>#include<windows.h> to get it. Your header does not do this.
>
>-Brad
>
>----------
>Get Your Private, Free E-mail from Indiatimes at <http://email.indiatimes.com>http://email.indiatimes.com
>Buy The Best In BOOKS at <http://www.bestsellers.indiatimes.com>http://www.bestsellers.indiatimes.com
>Bid for Air Tickets on Air Sahara Flights at Prices Lower Than Before. Just log on to <http://airsahara.indiatimes.com>http://airsahara.indiatimes.com and Bid Now ! 





More information about the gccxml mailing list