<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div>Kindly thank you for your hint. Yes, I have tried what you said, and now I have another errors, but I am sure that I am not far to solve my problem:</div><div><br></div><div><font color="#9d1811">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(470) : error C3861: 'min': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(471) : error C3861: 'min': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(472) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(473) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(494) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(495) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(496) : error C3861: 'min': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(497) : error C3861: 'min': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(658) : error C3861: 'min': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(659) : error C3861: 'min': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(660) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(661) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(682) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(683) : error C3861: 'max': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(684) : error C3861: 'min': identifier not found<br>1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(685) : error C3861: 'min': identifier not found<br>1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxtoolbar.h(166) : error C3861: 'max': identifier not found<br>1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxmenubar.h(160) : error C3861: 'max': identifier not found<br>1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxdesktopalertwnd.h(81) : error C3861: 'max': identifier not found</font><br></div><div><br></div><div>if I will get rid of these errors, I am sure that my app will run ... can you tell me what could be the problem ?<br></div><div><br></div>
<div id="yahoo_quoted_4887392901" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday, September 01, 2017 07:05:28 PM EEST, Allie Vacanti <allison.vacanti@kitware.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir='ltr'><html><body>The line it's failing on is<br clear="none"><br clear="none">maxDstId = std::max(maxDstId, dstIds->GetId(idIndex));<br clear="none"><br clear="none">I suspect the error is due to MSVC's decision to define macros that<br clear="none">use the identifiers 'min' and 'max'. Try adding "-DNOMINMAX" to your<br clear="none">compiler flags. See<br clear="none"><a shape="rect" href="https://stackoverflow.com/questions/5004858/stdmin-gives-error " target="_blank">https://stackoverflow.com/questions/5004858/stdmin-gives-error </a>for<br clear="none">more info.<br clear="none"><br clear="none">HTH,<br clear="none">Allie<br clear="none"><br clear="none">On Fri, Sep 1, 2017 at 7:14 AM, Flaviu2 via vtkusers <<a shape="rect" ymailto="mailto:vtkusers@vtk.org" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br clear="none">> Maybe is not so big deal, maybe it is just a stroke through some option ...<br clear="none">> which I didn't founded ...<br clear="none">><br clear="none">> On Friday, September 01, 2017 01:41:17 PM EEST, Flaviu2 via<br clear="none">> vtkusers <<a shape="rect" ymailto="mailto:vtkusers@vtk.org" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br clear="none">><br clear="none">><br clear="none">> Hi VTK users. I encountered an strange error, willing to compile my MFC<br clear="none">> project which have VTK inside.<br clear="none">><br clear="none">> I am using VTK 6.1, in an VS2008 project, on Win10.<br clear="none">><br clear="none">> The project work fine compiled on 32 bit, with VTK 6.1 compiled on 32 bit.<br clear="none">> Soon as I have compiled my project on 64 bit (and also VTK on 64), I get the<br clear="none">> following errors:<br clear="none">><br clear="none">> 1>MainFrm.cpp<br clear="none">> 1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error<br clear="none">> C2589: '(' : illegal token on right side of '::'<br clear="none">> 1> c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(454)<br clear="none">> : while compiling class template member function 'void<br clear="none">> vtkDataArrayTemplate<T>::InsertTuples(vtkIdList *,vtkIdList<br clear="none">> *,vtkAbstractArray *)'<br clear="none">> 1> with<br clear="none">> 1> [<br clear="none">> 1> T=unsigned char<br clear="none">> 1> ]<br clear="none">> 1> c:\program files\vtk\include\vtk-6.1\vtkUnsignedCharArray.h(41) :<br clear="none">> see reference to class template instantiation 'vtkDataArrayTemplate<T>'<br clear="none">> being compiled<br clear="none">> 1> with<br clear="none">> 1> [<br clear="none">> 1> T=unsigned char<br clear="none">> 1> ]<br clear="none">> 1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error<br clear="none">> C2059: syntax error : '::'<br clear="none">> 1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error<br clear="none">> C2589: '(' : illegal token on right side of '::'<br clear="none">> 1> c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(454)<br clear="none">> : while compiling class template member function 'void<br clear="none">> vtkDataArrayTemplate<T>::InsertTuples(vtkIdList *,vtkIdList<br clear="none">> *,vtkAbstractArray *)'<br clear="none">> 1> with<br clear="none">> 1> [<br clear="none">> 1> T=int<br clear="none">> 1> ]<br clear="none">> 1> c:\program files\vtk\include\vtk-6.1\vtkIntArray.h(41) : see<br clear="none">> reference to class template instantiation 'vtkDataArrayTemplate<T>' being<br clear="none">> compiled<br clear="none">> 1> with<br clear="none">> 1> [<br clear="none">> 1> T=int<br clear="none">> 1> ]<br clear="none">> 1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error<br clear="none">> C2059: syntax error : '::'<br clear="none">><br clear="none">> Do you experienced with this error ? Or, can you tell me what if the cause<br clear="none">> of this strange error ? And how can I solve this ?<br clear="none">><br clear="none">> Thank you.<br clear="none">><br clear="none">> _______________________________________________<br clear="none">> Powered by www.kitware.com<br clear="none">><br clear="none">> Visit other Kitware open-source projects at<br clear="none">> <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">><br clear="none">> Please keep messages on-topic and check the VTK FAQ at:<br clear="none">> <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">><br clear="none">> Search the list archives at: <a shape="rect" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none">><br clear="none">> Follow this link to subscribe/unsubscribe:<br clear="none">> <a shape="rect" href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><div class="yqt2553452227" id="yqtfd88742"><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> Powered by www.kitware.com<br clear="none">><br clear="none">> Visit other Kitware open-source projects at<br clear="none">> <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">><br clear="none">> Please keep messages on-topic and check the VTK FAQ at:<br clear="none">> <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">><br clear="none">> Search the list archives at: <a shape="rect" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none">><br clear="none">> Follow this link to subscribe/unsubscribe:<br clear="none">> <a shape="rect" href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">></div></body></html></div></div>
</div>
</div></div></body></html>