<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>Could you please submit your patch to gerrit for review:</div><div><br></div><div><a href="http://www.itk.org/Wiki/ITK/Git/Develop">http://www.itk.org/Wiki/ITK/Git/Develop</a></div><div><br></div><div>Thanks,</div><div>Brad</div><div><br></div><div><br></div><div><br><div><div>On Jul 29, 2014, at 9:58 PM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>Hi all,</div><div><br></div><div>Building ITK with MinGW64 comes clean but when using it in other library gives the below error. Turning -fpermissive can solve this bug but its not a option to be considered.</div>

<div><br></div><div>I had attached a  patch which will resolve this issue. </div><div><br></div>[ 78%] Building CXX object Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperApplicationRegistry.cxx.obj<div>

[ 79%] Building CXX object Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperChoiceParameter.cxx.obj<br>Linking CXX shared library ../../bin/libOTBTesting.dll<br>[ 79%] Built target OTBTesting<br>[ 79%] Building CXX object Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperInputImageListParameter.cxx.obj<br>

[ 79%] Building CXX object Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperOutputImageParameter.cxx.obj<br>Scanning dependencies of target otbTestDriver<br>[ 79%] Building CXX object Code/Testing/CMakeFiles/otbTestDriver.dir/otbTestDriver.cxx.obj<br>

In file included from /.../OTB-Nightly/Code/Testing/otbTestDriver.cxx:35:0:<br>/home/rashad/packages/mxe/usr/x86_64-w64-mingw32.shared/include/ITK-4.6/itksys/SharedForward.h: In function 'void kwsys_shared_forward_execvp(const char*, const char* const*)':<br>

<br>/home/rashad/packages/mxe/usr/x86_64-w64-mingw32.shared/include/ITK-4.6/itksys/SharedForward.h:516:19: error: invalid conversion from 'const char* const*' to 'char* const*' [-fpermissive]<br><br>   execvp(cmd, argv);<br>

                   ^<br>In file included from /home/rashad/packages/mxe/usr/x86_64-w64-mingw32.shared/include/ITK-4.6/itksys/SharedForward.h:158:0,<br>                 from /.../OTB-Nightly/Code/Testing/otbTestDriver.cxx:35:</div>

<div><br></div><div><br></div><div>-- </div><div><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div>
</div></div>
<span><itk-3-execvp.patch></span>_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://public.kitware.com/mailman/listinfo/insight-developers<br>_______________________________________________<br>Community mailing list<br>Community@itk.org<br>http://public.kitware.com/mailman/listinfo/community<br></blockquote></div><br></div></body></html>