[ITK-dev] mingw64 execvp -fpermissive error from KWSys/SharedForward.h

Rashad M mohammedrashadkm at gmail.com
Tue Jul 29 21:58:30 EDT 2014


Hi all,

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.

I had attached a  patch which will resolve this issue.

[ 78%] Building CXX object
Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperApplicationRegistry.cxx.obj
[ 79%] Building CXX object
Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperChoiceParameter.cxx.obj
Linking CXX shared library ../../bin/libOTBTesting.dll
[ 79%] Built target OTBTesting
[ 79%] Building CXX object
Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperInputImageListParameter.cxx.obj
[ 79%] Building CXX object
Code/ApplicationEngine/CMakeFiles/OTBApplicationEngine.dir/otbWrapperOutputImageParameter.cxx.obj
Scanning dependencies of target otbTestDriver
[ 79%] Building CXX object
Code/Testing/CMakeFiles/otbTestDriver.dir/otbTestDriver.cxx.obj
In file included from /.../OTB-Nightly/Code/Testing/otbTestDriver.cxx:35:0:
/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*)':

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

   execvp(cmd, argv);
                   ^
In file included from
/home/rashad/packages/mxe/usr/x86_64-w64-mingw32.shared/include/ITK-4.6/itksys/SharedForward.h:158:0,
                 from /.../OTB-Nightly/Code/Testing/otbTestDriver.cxx:35:


-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20140730/7e22ad70/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itk-3-execvp.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20140730/7e22ad70/attachment.bin>


More information about the Insight-developers mailing list