BuildingMSVCStandard

From Apache OpenOffice Wiki
Revision as of 09:55, 13 January 2006 by Gh (Talk | contribs)

Jump to: navigation, search

Code changes

What hides these issues when using Professional is more agressive inlining. Even if they all manifest with standard, they are actually separate and distinct issues. I've summarized the changes here and I'll add a patch once I've verified the impact of these changes. You have to do these changes before compiling --KaiB 22:13, 11 January 2006 (CET)

  • sj2/util/makefile.mk: add the SVTOOLLIB library
SHL1STDLIBS= \ 
$(VCLLIB) \ 
$(UNOTOOLSLIB) \ 
$(TOOLSLIB) \ 
$(CPPULIB) \ 
$(SALLIB) \ 
$(SVTOOLLIB) 
  • basic/source/apps/dialogs.cxx

1. Comment out the lines shown here starting from line 43:

//HACK( #define protected public )
//#define protected public		// Kleine Schweinerei um an FreeResource ranzukommen
#ifndef _TOOLS_RC_HXX //autogen
#include <tools/rc.hxx>
#endif
//#undef protected

2. Comment out the line shown here (line 238):

aConfig.EnablePersistence( FALSE );
// aTabCtrl.FreeResource();
FreeResource();

This change leads to some confusion of the ressource manager which produces some assertions in a nonpro build. But it seems to work otherwise.

In Issue 58352 there is a commit log of the changes needed to solve the problem and not workaround it. The fix is on CWS warnings01.

BTW: For basic/source/app Gregor Hartmann is responsible.

BTW: whats the meaning of 'reprecussions' several online dictionaries didn't know it

  • tools/source/stream/stream.cxx (line 66): Define ENABLE_STRING_STREAM_OPERATORS to compile the stream operators into the library:
 #define ENABLE_BYTESTRING_STREAM_OPERATORS
+#define ENABLE_STRING_STREAM_OPERATORS
 #include <stream.hxx>


Work area:

Personal tools