<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>