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

Intel C++ compiler fails to link extremely simple example

aa_bbb_f_
Beginner
460 Views

When attempting to compile the test example (exprtk_test.cpp) found in the following project:

https://github.com/ArashPartow/exprtk

command line:

/Zi /nologo /W3 /MP /O2 /Oi /Qipo /D "exprtk_enable_all_optimizations" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_CRT_SECURE_NO_WARNINGS" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "_SCL_SECURE_NO_WARNINGS" /D "_SECURE_SCL=0" /D "WINVER=0x0501" /D "_WIN32_WINNT=0x0501" /D "_WIN32_IE=0x0501" /D "_USE_32BIT_TIME_T" /D "_UNICODE" /D "UNICODE" /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fp"Release\ExprTk.pch" /Fa"Release\" /Fo"Release\" /Fd"Release\vc100.pdb" /Gd

Compiler version: 13.0.1203.2010

I get the following error: 

1>------ Rebuild All started: Project: ExprTk, Configuration: Release Win32 ------

1> exprtk_test.cpp
1>ipo_6928obj3.obj" : error : too many segments in object file
1>
1>xilink : error #10014: problem during multi-file optimization compilation (code 4)
1>xilink : error #10014: problem during multi-file optimization compilation (code 4)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

System Xeon X5650 2.66GHz, 64GB RAM, Win7 64bit, VS2012

is there an msvc bigobj equivalent switch?

0 Kudos
2 Replies
Judith_W_Intel
Employee
460 Views

 

I found this old post:

http://software.intel.com/en-us/forums/topic/304639

It looks like we now support the /bigobj option -- does that help? If not I would try to disable ipo.

Judy

0 Kudos
JenniferJ
Moderator
460 Views

MSVC emits the same error with debug|win32 config, but not release|win32. 

        exprtk.hpp(4669): fatal error C1128: number of sections exceeded object file format limit : compile with /bigobj

Adding /bigobj will solve the issue. so it is not a bug in the compiler. 

Jennifer 

0 Kudos
Reply