Skip to content

Compile error when including <complex> #15

@DoDoENT

Description

@DoDoENT

Error:

~/android-ndk-r11/sources/cxx-stl/gnu-libstdc++/4.9/include/complex:53:45: error: missing terminating ' character [-Werror]
 #error Cannot include both <complex> and C99's <complex.h>

This can be fixed by changing lines 52-54 of $NDK_DIR/sources/cxx-stl/gnu-libstdc++/4.9/include/complex

from

#ifdef _GLIBCXX_C99_COMPLEX_H
#error Cannot include both <complex> and C99's <complex.h>
#endif

into

#ifdef _GLIBCXX_C99_COMPLEX_H
#error Cannot include both <complex> and C99 <complex.h>
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions