[ITK-users] mingw, gcc5: "too many sections" and "undefined reference to vtable" errors

Nagaev Boris bnagaev at gmail.com
Sun Oct 23 17:09:29 EDT 2016


Hello,

I need help building ITK 4.8.0. I cross-compile on gcc 5.3.0 from
Linux to Windows using MinGW-w64. Everything was Ok on gcc 4.9.4.

I get the same errors as in this tread:
https://cmake.org/pipermail/insight-users/2015-September/052511.html
My log: https://git.io/vPNmf

I added -Wa,-mbig-obj flags and the same error:
https://cmake.org/pipermail/insight-users/2015-September/052512.html
My log: https://git.io/vPNqh
I added the flags by adding the following to cmake command:
-DCMAKE_C_FLAGS='-Wa,-mbig-obj'
-DCMAKE_CXX_FLAGS='-Wa,-mbig-obj'

If I add these flags and compile with gcc 4.9.0, it works.

-- 
Best regards,
Boris Nagaev


More information about the Insight-users mailing list