[ITK] [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
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list