Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7944 Discussions

catastrophic error: too many segments in object file

hylton__ron
Beginner
189 Views
Some of my compilations are failing with messages like

Debugxyz.obj(0): catastrophic error: too many segments in object file

I haven't found any documentation on exactly what this means or how I might avoid it. The programs involved are not large (the exe'swould beless than 4 MB, extrapolating from some projects that work) although they are very heavy on templates and some of the object files are surprisingly big (~50 Mb).
Some experimenting suggests that there is a de facto limit on the number of template instantiations in a single object file. I have a 'top-level' template that instantiates many other templates. Compilations work for programs that have two distinct instantiations of the top-level template, but compilations with three distinct instantiations of the top-level template fail with the 'too many segments' error.
I'm using the 8.1 compiler for Windws (W_CC_PC_8.1.019).
Does anyone have more information or work-around suggestions for this problem?
Thanks,
Ron
0 Kudos
0 Replies
Reply