<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1790052337;
mso-list-type:hybrid;
mso-list-template-ids:502570252 1421003738 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"\(%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.25in'>My env. Cygwin + Visual Studio. Windows 7<o:p></o:p></p><p class=MsoNormal style='margin-left:.25in'><o:p> </o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>(1)<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>IsA in ErrorInfo comes from a macro in rtti.hxx<o:p></o:p></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>a.<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>/include/tools/errinfo.hxx<o:p></o:p></p><p class=MsoListParagraph style='margin-left:1.5in;text-indent:-1.5in;mso-text-indent-alt:-9.0pt;mso-list:l0 level3 lfo1'><![if !supportLists]><span style='mso-list:Ignore'><span style='font:7.0pt "Times New Roman"'> </span>i.<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>class ErrorInfo has as member, macro TYPEINFO() to include 5 methods, including IsA<o:p></o:p></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>b.<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>/include/tools/rtti.hxx<o:p></o:p></p><p class=MsoListParagraph style='margin-left:1.5in;text-indent:-1.5in;mso-text-indent-alt:-9.0pt;mso-list:l0 level3 lfo1'><![if !supportLists]><span style='mso-list:Ignore'><span style='font:7.0pt "Times New Roman"'> </span>i.<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>This has macros, including TYPEINFO<o:p></o:p></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>c.<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>Tools/ref/errinf.cxx ( implementation file, but does not include implementations for five methods via TYPEINFO macro.<o:p></o:p></p><p class=MsoNormal style='margin-left:99.0pt'><o:p> </o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>(2)<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>What library needs to be linked to that has implementation code for macros in rtti.hxx for a Win32 Intel platform?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is a test code<o:p></o:p></p><p class=MsoNormal>//===========================================<o:p></o:p></p><p class=MsoNormal>#include "stdafx.h"<o:p></o:p></p><p class=MsoNormal>#include <rtl/ustring.hxx><o:p></o:p></p><p class=MsoNormal>#include <include/tools/rtti.hxx><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>typedef void* (*TypeId)();<o:p></o:p></p><p class=MsoNormal>class ErrorInfoX<o:p></o:p></p><p class=MsoNormal>{<o:p></o:p></p><p class=MsoNormal>private:<o:p></o:p></p><p class=MsoNormal> sal_uIntPtr lUserId;<o:p></o:p></p><p class=MsoNormal>public:<o:p></o:p></p><p class=MsoNormal> TYPEINFO();<o:p></o:p></p><p class=MsoNormal> ErrorInfoX( sal_uIntPtr lArgUserId ) :<o:p></o:p></p><p class=MsoNormal> lUserId( lArgUserId ){}<o:p></o:p></p><p class=MsoNormal> virtual ~ErrorInfoX(){}<o:p></o:p></p><p class=MsoNormal> sal_uIntPtr GetErrorCode() const { return lUserId; }<o:p></o:p></p><p class=MsoNormal> static ErrorInfoX* GetErrorInfo(sal_uIntPtr);<o:p></o:p></p><p class=MsoNormal>};<o:p></o:p></p><p class=MsoNormal>int main(int argc, char* argv[])<o:p></o:p></p><p class=MsoNormal>{<o:p></o:p></p><p class=MsoNormal> sal_uIntPtr t = 4;<o:p></o:p></p><p class=MsoNormal> ErrorInfoX err(t);<o:p></o:p></p><p class=MsoNormal> return 0;<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal>//linked to lib(s) itl.lib ( tools )<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>/*<o:p></o:p></p><p class=MsoNormal>error output:<o:p></o:p></p><p class=MsoNormal>1>testdefine.obj : error LNK2001: unresolved external symbol "public: virtual void * (__cdecl*__thiscall ErrorInfoX::Type(void)const )(void)" (?Type@ErrorInfoX@@UBEP6APAXXZXZ)<o:p></o:p></p><p class=MsoNormal>1>testdefine.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall ErrorInfoX::IsA(void * (__cdecl*)(void))const " (?IsA@ErrorInfoX@@UBE_NP6APAXXZ@Z)<o:p></o:p></p><p class=MsoNormal>1>C:\cygwin64\home\lo\Excel.Analysis\Test.OpenClose\Debug\testdefine.exe : fatal error LNK1120: 2 unresolved externals<o:p></o:p></p><p class=MsoNormal>*/<o:p></o:p></p><p class=MsoNormal>//========================================================================<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>