Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Compatibility with GCC 5.1.0

$
0
0

When I attempt to compile any source file with icpc that includes the complex header (#include <complex>) using GCC 5.1.0 (-gxx-name=/opt/gcc/5.1.0/bin/g++) with -std=c++11 I get several compilation errors indicating a collision between the Intel and GCC complex header files, e.g.

In file included from /opt/gcc/5.1.0/include/c++5.1.0/sstream(813), from /opt/gcc/5.1.0/include/c++5.1.0/complex(45), from /opt/intel/2015/compiler/include/complex(30),from test.cpp(2): /opt/gcc/5.1.0/include/c++/5.1.0/bits/stl_iterator_base_types.h(154): error: class "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>" has no member "iterator_category"

I am able to compile the source files without issue using g++ 5.1.0

Is this a configuration issue with this particular build of GCC 5.1.0 or a compatibility problem?


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>