Skip to content

Make error: bits/c++config.h: No such file or directory #2202

@gerwang

Description

@gerwang

I am using anaconda's gcc_linux-64 with no multilib support. When I execute make I get

.../include/c++/7.3.0/complex.h:29:10: fatal error: bits/c++config.h: No such file or directory #include <bits/c++config.h>

which is invoked in file common.h:

520       (__GNUC__ >= 3 && !defined(__cplusplus))) && !(defined(FORCE_OPENBLAS_COMPLEX_STRUCT))) && !defined(_MSC_VER)
521   #define OPENBLAS_COMPLEX_C99
522   #ifndef __cplusplus
523     #include <complex.h> // here
524   #endif

Yes, there is no c++config.h in .../include/c++/7.3.0/. But when I compile a small test program:

#include <complex>
#include <iostream>
using namespace std;

complex<double> nmb;

int main() {
        std::cout<<nmb.real()<<" "<<nmb.imag()<<std::endl;
}

It compiles and works.

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