Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

C++ -vec-report problem

Jamil_A_
Beginner
143 Views

 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
143 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