<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
            <div>Hi again. I think I have found a solution: to not use </div><div><br></div><div>#define NOMINMAX<br></div><div><br></div><div>but</div><div><br></div><div><span class="ydp6d55a871com">#undef</span><span class="ydp6d55a871pln"> min</span></div><div><span class="ydp6d55a871pln"></span><span class="ydp6d55a871com">#undef</span><span class="ydp6d55a871pln"> max</span></div><div><span class="ydp6d55a871pln"><br></span></div><div><span class="ydp6d55a871pln">after all MFC including headers, inside stdafx.h file; ... in case that somebody encounter this problem ...</span></div><div><br></div><div><br></div>
            
            <div id="yahoo_quoted_4958453657" class="yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On ‎Monday‎, ‎September‎ ‎04‎, ‎2017‎ ‎12‎:‎28‎:‎58‎ ‎PM‎ ‎EEST, Flaviu2 via vtkusers <vtkusers@vtk.org> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div id="yiv4080126044"><html><head></head><div><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 clear="none"></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 clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(471) : error C3861: 'min': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(472) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(473) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(494) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(495) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(496) : error C3861: 'min': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(497) : error C3861: 'min': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(658) : error C3861: 'min': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(659) : error C3861: 'min': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(660) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(661) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(682) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(683) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(684) : error C3861: 'min': identifier not found<br clear="none">1>c:\program files\microsoft sdks\windows\v6.0a\include\GdiplusTypes.h(685) : error C3861: 'min': identifier not found<br clear="none">1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxtoolbar.h(166) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxmenubar.h(160) : error C3861: 'max': identifier not found<br clear="none">1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxdesktopalertwnd.h(81) : error C3861: 'max': identifier not found</font><br clear="none"></div><div><br clear="none"></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 clear="none"></div><div><br clear="none"></div>
            
            <div class="yiv4080126044yqt5581799317" id="yiv4080126044yqt78114"><div class="yiv4080126044yahoo_quoted" id="yiv4080126044yahoo_quoted_4887392901">
                <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 clear="none"></div>
                    <div><br clear="none"></div>
                    <div><div dir="ltr"></div></div></div></div></div></div></div><html><div class="yiv4080126044yqt5581799317" id="yiv4080126044yqt51601"><div>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 rel="nofollow" shape="rect" target="_blank" href="https://stackoverflow.com/questions/5004858/stdmin-gives-error ">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 rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" 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 rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org" target="_blank" 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 rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">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 rel="nofollow" shape="rect" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">><br clear="none">> Search the list archives at: <a rel="nofollow" shape="rect" target="_blank" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br clear="none">><br clear="none">> Follow this link to subscribe/unsubscribe:<br clear="none">> <a rel="nofollow" shape="rect" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><div class="yiv4080126044yqt2553452227" id="yiv4080126044yqtfd88742"><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 rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">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 rel="nofollow" shape="rect" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">><br clear="none">> Search the list archives at: <a rel="nofollow" shape="rect" target="_blank" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br clear="none">><br clear="none">> Follow this link to subscribe/unsubscribe:<br clear="none">> <a rel="nofollow" shape="rect" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">></div></div></div></html></html></div><html><div class="yqt5581799317" id="yqt18160"><body>_______________________________________________<br clear="none">Powered by www.kitware.com<br clear="none"><br clear="none">Visit other Kitware open-source projects at <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: <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"></body></div></html></div>
                </div>
            </div></div></body></html>