Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » "too many sections" error with MinGW
"too many sections" error with MinGW [message #52885] Thu, 02 January 2020 12:37 Go to next message
koldo is currently offline  koldo
Messages: 3093
Registered: August 2008
Ultimate Member
Good morning

I wanted to compile in TheIDE a package with an external library. In RELEASE it compiles well, but in DEBUG the compiler generates a "too many sections" error.

I have used this fix, unsuccessfully.

Maybe a workaround could be to compile this package only, always in RELEASE mode, even when the parent project is compiled in DEBUG mode.
Could it be possible to force a package to be compiled always in RELEASE mode?


Best regards
Iñaki
Re: "too many sections" error with MinGW [message #52886 is a reply to message #52885] Thu, 02 January 2020 15:46 Go to previous message
koldo is currently offline  koldo
Messages: 3093
Registered: August 2008
Ultimate Member
Well, finally I have got the problematic file and I have applied in its "Additional compiler options for the file" in "Package organizer", the options Wa,-mbig-obj -Os (both) for MinGW, and /bigobj for MSVC.

A relevant detail is that in MinGW it was useless to apply these options to the package, as in c++ argument list, the option order is more or less:
1. Package options
2. General options
3. File options

and -O0 (General option) would be after -Os (Package option), so the later would prevail.


Best regards
Iñaki
Previous Topic: "canberra-gtk-module"
Goto Forum:
  


Current Time: Sun Mar 29 10:50:52 CEST 2020

Total time taken to generate the page: 0.00730 seconds