Intel C++ compiler fails to link extremely simple example

Intel C++ compiler fails to link extremely simple example

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?

3 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

 

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

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 

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui