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

Link errors on RH9

stele
Beginner
404 Views
I am evaluating the Intel compiler after using gcc 3.2.2 on a large project.

I installed the Intel compiler, did a "make clean" on my project, modified my makefile to use icc, and built. All of my sources (which contain a lot of templates) built without problems, but during the link, I get numerous errors:

IPO Error: unresolved : __cxa_begin_catch
(referenced in numerous files)

IPO Error: unresolved : __cxa_rethrow
(referenced in numerous files)

IPO Error: unresolved : _ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvj
(referenced in numerous files)

release/file.o(.text+0x25e): In function `destr_detour4.0.65.164':
: undefined reference to `__cxa_guard_release'


I get pages of these errors. I haven't modified my link line (other than changing "g++" to "icc"), but there is nothing "weird" on there. I am linking with a bunch of external static and dynamic libraries though (such as Qt).

Anyone know what the problem is?
0 Kudos
2 Replies
TimP
Honored Contributor III
404 Views
You should change "g++" to "icpc" and "gcc" to "icc". It looks like you aren't linking against icpc C++ libraries.
0 Kudos
stele
Beginner
404 Views
Silly me - that was it. Worked fine, AND my cursory performance test indicated slightly faster than before. Great!
0 Kudos
Reply