To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58972
                  Issue #:|58972
                  Summary:|gcc-4.1: friend function is no longer a declaration
                Component:|porting
                  Version:|680m142
                 Platform:|PC
                      URL:|
               OS/Version:|Linux
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mh
              Reported by:|pmladek





------- Additional comments from [EMAIL PROTECTED] Tue Dec  6 09:05:46 -0800 
2005 -------
gcc-4.1 does not longer do explicit declaration for functions that are declared
as friend functions. Such function must be explicitely declared at another 
place.

The related error message looks like:
--- cut ---
/usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solver/680/unxlngi6.pro/inc/svx/sdrobjectuser.hxx:53:
warning: ‘class sdr::ObjectUser’ has virtual functions but non-virtual 
destructor
../../../inc/init.hxx:47: error: variable or field ‘SetShell’ declared void
../../../inc/init.hxx:47: error: ‘ViewShell’ was not declared in this scope
../../../inc/init.hxx:47: error: ‘pSh’ was not declared in this scope
--- cut ---

Background:
gcc accepted some non-standard constructs in the past. The result was that the
code developed with gcc was not enough portable. Each new version of gcc fixes
some of this problems. gcc-4.1 fixes this one.

I'll attach patches that fixes this problem. Note that they do not fix the
entire OOo sources. I do not build some external project because I use internal
libraries instead. The patches for the project binfilter will be attached in the
separate issue #58937.

The fixes usually were trivial. It was enough to do the declaration on a
suitable location, include a heared file on a suitable location. There were some
similar and conditional fixes for MS Win on some places. I removed the ugly
condition, so the functions are correctly declared on all systems now.

I opened the CWS gcc41 and will commit the patches there.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to