- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when I using icpc compiling c++, I get lots of errors like as
/usr/local/include/c++/5.2.0/x86_64-unknown-linux-gnu/bits/c++config.h(222): error: expected a type specifier
inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
^
/usr/local/include/c++/5.2.0/iosfwd(147): error: basic_stringbuf is not a template
typedef basic_stringbuf<char> stringbuf;
^
/usr/local/include/c++/5.2.0/iosfwd(150): error: basic_istringstream is not a template
typedef basic_istringstream<char> istringstream;
my compiler version is 11.1
Thks for any suggestions.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The old icpc isn't compatible with the major changes made in g++ 5.2 to support -std=c++14. Past icpc did sometimes require explicit setting of -std=c++0x where g++ did not. However, you may need to install a version of g++ as implied by the prerequisites mentioned in the release notes of your icpc if you wish to continue using the no longer supported version. For a reasonable degree of compatibility with g++ 5.2 you will need the icpc 16.x releases.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page