Difference between revisions of "BuildingMSVCStandard"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 31: Line 31:
  
 
This seems like a policy error corrected by mauling the compiler? TODO: Contact Andreas Bregas and ask him if this can be removed. Thorsten informed that the code is from the initial OOo publish -- the change therefore happened in pre-OOo times.
 
This seems like a policy error corrected by mauling the compiler? TODO: Contact Andreas Bregas and ask him if this can be removed. Thorsten informed that the code is from the initial OOo publish -- the change therefore happened in pre-OOo times.
 +
 +
Work area:
 +
 +
/MAP /OPT:NOREF /NODEFAULTLIB /RELEASE /DEBUG:full /SUBSYSTEM:CONSOLE /DLL -out:../../wntmsci10.pro/bin/bf_sch680mi.dll - map:../../wntmsci10
 +
.pro/misc/bf_sch680mi.map ..\..\wntmsci10.pro\lib\bf_schi.exp ..\..\wntmsci10.pro\slo\sch_schdll.obj ..\..\wntmsci10.pro\slo\bf_sch_dflt_ver
 +
sion.obj ..\..\wntmsci10.pro\slo\bf_sch_dflt_description.obj ..\..\wntmsci10.pro\slb\bf_sch.lib bf_svx.lib ilegacy_binfilters.lib so2.lib ig
 +
o.lib svtool.lib ivcl.lib isvl.lib sot.lib iutl.lib itools.lib icomphelp.lib icppuhelper.lib icppu.lib isal.lib msvcrt.lib uwinapi.lib kerne
 +
l32.lib user32.lib oldnames.lib stlport_vc71.lib ..\..\wntmsci10.pro\misc\bf_sch680mi.res
 +
bf_sch.lib(sch_memchrt.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream:
 +
:operator<<(class String const &)" (__imp_??6SvStream@@QAEAAV0@ABVString@@@Z) referenced in function "class SvStream & __cdecl binfilter::op
 +
erator<<(class SvStream &,class binfilter::SchMemChart const &)" (??6binfilter@@YAAAVSvStream@@AAV1@ABVSchMemChart@0@@Z)
 +
bf_sch.lib(sch_chtmode2.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream
 +
::operator<<(class String const &)" (__imp_??6SvStream@@QAEAAV0@ABVString@@@Z) referenced in function "private: class binfilter::SdrObjGroup
 +
  * __thiscall binfilter::ChartModel::CreateLegend(class Rectangle const &)" (?CreateLegend@ChartModel@binfilter@@AAEPAVSdrObjGroup@2@ABVRect
 +
angle@@@Z)
 +
bf_sch.lib(sch_memchrt.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream:
 +
:operator>>(class String &)" (__imp_??5SvStream@@QAEAAV0@AAVString@@@Z) referenced in function "class SvStream & __cdecl binfilter::operator
 +
>>(class SvStream &,class binfilter::SchMemChart &)" (??5binfilter@@YAAAVSvStream@@AAV1@AAVSchMemChart@0@@Z)
 +
bf_sch.lib(sch_chtmode2.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream
 +
::operator>>(class String &)" (__imp_??5SvStream@@QAEAAV0@AAVString@@@Z)
 +
../../wntmsci10.pro/bin/bf_sch680mi.dll : fatal error LNK1120: 2 unresolved externals
 +
dmake:  Error code 96, while making '../../wntmsci10.pro/bin/bf_sch680mi.dll'
 +
---* tg_merge.mk *---
 +
 +
ERROR: Error 65280 occurred while making /cygdrive/c/work/OOo_2.0.0rc3_src/binfilter/bf_sch/util
 +
dmake:  Error code 1, while making 'build_instsetoo_native'
 +
---* tg_merge.mk *---

Revision as of 14:05, 12 January 2006

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 seems like a policy error corrected by mauling the compiler? TODO: Contact Andreas Bregas and ask him if this can be removed. Thorsten informed that the code is from the initial OOo publish -- the change therefore happened in pre-OOo times.

Work area:

/MAP /OPT:NOREF /NODEFAULTLIB /RELEASE /DEBUG:full /SUBSYSTEM:CONSOLE /DLL -out:../../wntmsci10.pro/bin/bf_sch680mi.dll - map:../../wntmsci10
.pro/misc/bf_sch680mi.map ..\..\wntmsci10.pro\lib\bf_schi.exp ..\..\wntmsci10.pro\slo\sch_schdll.obj ..\..\wntmsci10.pro\slo\bf_sch_dflt_ver
sion.obj ..\..\wntmsci10.pro\slo\bf_sch_dflt_description.obj ..\..\wntmsci10.pro\slb\bf_sch.lib bf_svx.lib ilegacy_binfilters.lib so2.lib ig
o.lib svtool.lib ivcl.lib isvl.lib sot.lib iutl.lib itools.lib icomphelp.lib icppuhelper.lib icppu.lib isal.lib msvcrt.lib uwinapi.lib kerne
l32.lib user32.lib oldnames.lib stlport_vc71.lib ..\..\wntmsci10.pro\misc\bf_sch680mi.res
bf_sch.lib(sch_memchrt.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream:
:operator<<(class String const &)" (__imp_??6SvStream@@QAEAAV0@ABVString@@@Z) referenced in function "class SvStream & __cdecl binfilter::op
erator<<(class SvStream &,class binfilter::SchMemChart const &)" (??6binfilter@@YAAAVSvStream@@AAV1@ABVSchMemChart@0@@Z)
bf_sch.lib(sch_chtmode2.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream
::operator<<(class String const &)" (__imp_??6SvStream@@QAEAAV0@ABVString@@@Z) referenced in function "private: class binfilter::SdrObjGroup
 * __thiscall binfilter::ChartModel::CreateLegend(class Rectangle const &)" (?CreateLegend@ChartModel@binfilter@@AAEPAVSdrObjGroup@2@ABVRect
angle@@@Z)
bf_sch.lib(sch_memchrt.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream:
:operator>>(class String &)" (__imp_??5SvStream@@QAEAAV0@AAVString@@@Z) referenced in function "class SvStream & __cdecl binfilter::operator
>>(class SvStream &,class binfilter::SchMemChart &)" (??5binfilter@@YAAAVSvStream@@AAV1@AAVSchMemChart@0@@Z)
bf_sch.lib(sch_chtmode2.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class SvStream & __thiscall SvStream
::operator>>(class String &)" (__imp_??5SvStream@@QAEAAV0@AAVString@@@Z)
../../wntmsci10.pro/bin/bf_sch680mi.dll : fatal error LNK1120: 2 unresolved externals
dmake:  Error code 96, while making '../../wntmsci10.pro/bin/bf_sch680mi.dll'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /cygdrive/c/work/OOo_2.0.0rc3_src/binfilter/bf_sch/util
dmake:  Error code 1, while making 'build_instsetoo_native'
---* tg_merge.mk *---
Personal tools