Skip to content

compilation fails on intel compilers 2018< #4

@stenczelt

Description

@stenczelt

The code compiled with intel 2017 (tried icpc (ICC) 17.0.4 20170411), however with 2018 (tried icpc (ICC) 18.0.6 20190525). we see the following issue:

~/opt/ZStruct$ make
/usr/local/apps/intel_2018/bin/icpc -qopenmp -I/usr/local/apps/intel_2018/mkl/include -c -g  zstruct.cpp
/usr/local/apps/intel_2018/bin/icpc -qopenmp -I/usr/local/apps/intel_2018/mkl/include -c -g  main.cpp
/usr/local/apps/intel_2018/bin/icpc -qopenmp -I/usr/local/apps/intel_2018/mkl/include -c -g  icoord.cpp
icoord.cpp(1461): error: no suitable conversion function from "std::basic_istream<char, std::char_traits<char>>" to "bool" exists
    success=getline(infile, line);
            ^

icoord.cpp(1472): error: no suitable conversion function from "std::basic_istream<char, std::char_traits<char>>" to "bool" exists
    success=getline(infile, line);
            ^

icoord.cpp(1481): error: no suitable conversion function from "std::basic_istream<char, std::char_traits<char>>" to "bool" exists
      success=getline(infile, line);
              ^

icoord.cpp(1505): error: no suitable conversion function from "std::basic_istream<char, std::char_traits<char>>" to "bool" exists
    success=getline(infile, line);
            ^

icoord.cpp(1506): error: no suitable conversion function from "std::basic_istream<char, std::char_traits<char>>" to "bool" exists
    success=getline(infile, line);
            ^

icoord.cpp(1508): error: no suitable conversion function from "std::basic_istream<char, std::char_traits<char>>" to "bool" exists
      success=getline(infile, line);
              ^

compilation aborted for icoord.cpp (code 2)
Makefile:33: recipe for target 'icoord.o' failed
make: *** [icoord.o] Error 2

Do you know how to fix this? Is there a python alternative to this package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions