Maximum header file size in MinGW

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Maximum header file size in MinGW


Hi Folks,

I am getting an "Invalid argument" error when trying to compile a C++ program of mine using MinGW (mingw32-g++).

The problem seems to be created by one of my header which contains a fairly sizeable array of around 150,000 elements. The file size ends up being ~900KiB.

I chopped down at the array and when I get to a file size of 100KiB or around 18,000 elements the program then compiles. At 200KiB file size or around 36,000 element the error returns.

Is there a file or array size limitation in MinGW?


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:[hidden email]?subject=unsubscribe