<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="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 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
        {page:Section1;}
-->
</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=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello! I’ve read about aspect-oriented programming some
years ago and I was interested in it, but at the time AspectC++ was still in
beginning state. Now we’d really like to add tracing etc. to our current
projects (with Visual Studio add-in by pure-systems) but we encountered
compiling problems – I’d be glad to have some info whether this can
be fixed by editing project/sources or is this a known parsing bug.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In our project we use STL and ATL, so that includes a lot of
templates. I got the following error messages when I tried to compile with tracing
example as an active aspect:<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Compiling...<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>The system cannot find the file
specified.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>generating includes ... <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlstr.h(594): error: invalid member declaration
near token `*'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlplus.h(18): error: invalid declaration near
token `['<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlplus.h(25): error: invalid declaration near
token `template'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlplus.h(51): error: invalid type in
declaration of parameter `%anon8465'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlwin.h(267): error: invalid type in
declaration of parameter `%anon9375'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlwin.h(268): error: invalid type in declaration
of parameter `%anon9377'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlwin.h(274): error: invalid type in
declaration of parameter `%anon9381'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>C:/Program Files/Microsoft Visual
Studio .NET/Vc7/atlmfc/include/atlwin.h(1922): error: invalid declaration near
token `selectany'<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>AspectC++ generating includes failed<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In that aspect we tried to add tracing to all functions. When
we tried to add tracing to only one free function compiling and linking
succeeded. I also tried to add tracing to all functions with VS’s wizard-generated
MFC example project and it succeeded. I even tried to add some STL map things
to test whether this behaviour is related to template parsing, but it also
succeeded. When I tried to add tracing to VS’s wizard-generated ATL
example project (DLL), compiling failed. Is there any workarounds for this
behaviour?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Best Regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Timo Lehtinen<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>SW manager<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Progman Oy<o:p></o:p></span></font></p>

</div>

</body>

</html>