Hi,

[EMAIL PROTECTED] wrote:
I got several compile errors all of the same kind like for example: /data/ooo/SRC680_m95/sfx2/source/doc/guisaveas.cxx:796: error: variable declaration is not allowed here ::rtl::OUString aCtrlText( String( SfxResId( STR_EXPORTBUTTON ) ) ); I work with default settings (configure with one parameter for ant) on a default system (SuSE 9.1 with gcc 3.3.3). Can anyone say what I'm doing wrong?


Hi, this is caused by a bug in g++ versions prior to 3.4. As most developers are using 3.4 now, we unfortunately have these problems regularly. They usually get fixed quickly, but you may find that in any given milestone.


Nevertheless moving to a more recent milestone (m102 was finished today) may help. Otherwise please check in Issuezilla for patches for your issue, In most cases searching issuezilal for your error line (i.e. "sfx2/source/doc/guisaveas.cxx:796: error: variable declaration is not allowed here" or similar shopuld turn up something.

The fix in each case is to rearrange the variable initialization (sometimes with the help of an additional named variable).

In the case you show, the simplest fix would be

  ::rtl::OUString aCtrlText =
        ::rtl::OUString( String( SfxResId( STR_EXPORTBUTTON ) ) );

HTH, J�rg

--
Joerg Barfurth              Sun Microsystems - Desktop - Hamburg
>>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<<
Software Engineer                         [EMAIL PROTECTED]
OpenOffice.org Configuration          http://util.openoffice.org


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to