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

Different implementations of Hash Map in GCC 3.2.2 v/s ICC 8.x

Muralidhar_K_Intel
239 Views
I am been trying to migrate a tool originally developed originally under GCC 3.2.2 to ICC 8.x on Linux. The idea is to enable ICC optimizations to gain on execution /run time performances of the tool
Currently, I am encountering a show stopper with regards to migrating the SW. The hash map implementation under GCC is different from the dinkumware implementation of hash map under ICC. The program errors out when I have a "string " type array indexing into the hash map.
Is there a solution ?
Thankx
Murali
0 Kudos
1 Reply
cp_jain
Beginner
239 Views
Hi Murali,

ICC 8.x has an option, -cxxlib-gcc, to use GCC's STL (libstdc++) instead of
dinkumware library (STL). This should solve your problem.

HTH,
CP
0 Kudos
Reply