Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jamil_A_
Beginner
83 Views

C++ -vec-report problem

 Hi 

  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.

 

  

0 Kudos
1 Reply
Georg_Z_Intel
Employee
83 Views

Hi, this problem has been fixed with Intel(R) Composer XE 2011 Update 11 and higher (aka. 12.1.5). Best regards, Georg Zitzlsberger
Reply