Support for array in icpc 12.1.5

Support for array in icpc 12.1.5


I am trying to compile a simple C++ 0x program using the icpc 12.1.5 Intel compiler as:

icpc -std=c++0x

where, :

// array::at


int main ()


  unsigned int i;

  std::array myarray;
  // assign some values:

  for (i=0; i<10; i++) = i+1;
  // print content

  std::cout << "myarray contains:";

  for (i=0; i<10; i++)

    std::cout << " " <<;
  std::cout << std::endl;
  return 0;

but Iam getting: catastrophic error: cannot open source file "array"
Is array NOT supported by icpc 12.1 ?


R/D High-Performance Computing and Engineering
2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

This forum is for the discussions about the Intel Cilk Plus extension to C and C++. This is a base compiler question. You're more likely to get an answer to your question in the Intel C Compiler forum.

- Barry

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen