C++ -vec-report problem

C++ -vec-report problem


  Activating -vec-report during compilation of a c++ shared library fails to compile but works for the c compiler.

   Has anyone seen the same problem?

#include <iostream>

int main()
std::cout << "Hello World\n";
return 1;

> icpc -vec-report3 -O2  -fPIC -c test.cxx -o test.o

> icpc test.o -shared -o test.so

ld: test.o: relocation R_X86_64_PC32 against undefined symbol `DW.ref.__gxx_personality_v0' can not be used when making a shared object; recompile with -fPIC
ld: final link failed: Bad value

> icpc --version

icpc (ICC) 12.1.0 20110811
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.



2 帖子 / 0 全新


this problem has been fixed with Intel(R) Composer XE 2011 Update 11 and higher (aka. 12.1.5).

Best regards,

Georg Zitzlsberger